From f83407e09a204a4e892f431637fe186e3e988a65 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 1 Jul 2021 12:07:26 -0500 Subject: Expose `content.astro.html` to `Astro.fetchContent` (#583) * feat: expose `content.astro.html` to Astro.fetchContent * docs: add `astro.html` note to docs --- docs/reference/api-reference.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/reference/api-reference.md') diff --git a/docs/reference/api-reference.md b/docs/reference/api-reference.md index e7f605901..0f04682bf 100644 --- a/docs/reference/api-reference.md +++ b/docs/reference/api-reference.md @@ -41,8 +41,9 @@ const data = Astro.fetchContent('../pages/post/*.md'); // returns an array of po description: '', **/ astro: { - headers: [], // TODO: document what this means - source: '' // raw source of the markdown file + headers: [], // an array of h1...h6 elements in the markdown file + source: '' // raw source of the markdown file + html: '' // rendered HTML of the markdown file }, url: '' // the rendered path }[] -- cgit v1.2.3