diff options
author | 2021-07-01 12:07:26 -0500 | |
---|---|---|
committer | 2021-07-01 12:07:26 -0500 | |
commit | f83407e09a204a4e892f431637fe186e3e988a65 (patch) | |
tree | fba69f5e9ae49b9bb1b65134e87c847d6fe76d6c /packages/markdown-support | |
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 'packages/markdown-support')
-rw-r--r-- | packages/markdown-support/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/markdown-support/src/index.ts b/packages/markdown-support/src/index.ts index f311efa7c..f3ceda1a1 100644 --- a/packages/markdown-support/src/index.ts +++ b/packages/markdown-support/src/index.ts @@ -68,7 +68,7 @@ export async function renderMarkdown(content: string, opts?: MarkdownRenderingOp } return { - astro: { headers, source: content }, + astro: { headers, source: content, html: result.toString() }, content: result.toString(), }; } |