diff options
author | 2021-07-01 12:07:26 -0500 | |
---|---|---|
committer | 2021-07-01 12:07:26 -0500 | |
commit | f83407e09a204a4e892f431637fe186e3e988a65 (patch) | |
tree | fba69f5e9ae49b9bb1b65134e87c847d6fe76d6c /docs/reference/api-reference.md | |
parent | d3969436dcbe40a3d41a036ff7c2761aed176109 (diff) | |
download | astro-f83407e09a204a4e892f431637fe186e3e988a65.tar.gz astro-f83407e09a204a4e892f431637fe186e3e988a65.tar.zst astro-f83407e09a204a4e892f431637fe186e3e988a65.zip |
Expose `content.astro.html` to `Astro.fetchContent` (#583)
* feat: expose `content.astro.html` to Astro.fetchContent
* docs: add `astro.html` note to docs
Diffstat (limited to 'docs/reference/api-reference.md')
-rw-r--r-- | docs/reference/api-reference.md | 5 |
1 files changed, 3 insertions, 2 deletions
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 }[] |