summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/src
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2022-08-05 14:43:50 -0500
committerGravatar GitHub <noreply@github.com> 2022-08-05 15:43:50 -0400
commit471c6f784e21399676c8b2002665ffdf83a1c59e (patch)
treeb39134eb9b53b3a9ef9b987286061215a2af3531 /packages/markdown/remark/src
parent838eb3e5cc523d20aa5fb6b136ed5f6701568b1d (diff)
downloadastro-471c6f784e21399676c8b2002665ffdf83a1c59e.tar.gz
astro-471c6f784e21399676c8b2002665ffdf83a1c59e.tar.zst
astro-471c6f784e21399676c8b2002665ffdf83a1c59e.zip
[markdown] Harder, better, faster, stronger `vite-plugin-markdown` (#4137)
* refactor: vite-plugin-md -> vite-plugin-md-legacy * wip: add vite-plugin-md * feat: always apply jsx renderer * fix: markHTMLString on VNode result * feat: apply new vite-plugin-markdown! * fix: add meta export to md * fix: remove needless $$metadata export * fix: toggle to legacy plugin on flag * fix: pass fileId to renderMarkdown * test: raw and compiled content on plain md * fix: escape vite env refs * refactor: astro-md -> legacy-astro-flavored-md, astro-md-mode -> astro-markdown * fix: import.meta.env refs with tests * fix: add pkg.json to clientAddress * fix: prefer JSX integration over Astro runtime * Revert "fix: prefer JSX integration over Astro runtime" This reverts commit 3e5fa49344be9c857393da9af095faab152e92e1. * fix: remove .mdx check on importSource * chore: changeset * chore: remove TODO * fix: add back getHeadings * fix: add pkg.json to astro-head fixture * fix: default to Astro renderer for MDX and MD * feat: add "headings" and "frontmatter" to md layouts * refactor: remove legacy flag conditionals from legacy plugin * fix: add back MDX warning when legacy is off * test: getHeadings() glob * fix: add error on "astro.headings" access * feat: update docs example astro.headings => headings * refactor: readFile as string w/ utf-8 * chore: remove astro metadata TODO * refactor: stringify HTML once * fix: add pkg.json to glob-pages-css
Diffstat (limited to 'packages/markdown/remark/src')
-rw-r--r--packages/markdown/remark/src/remark-escape.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/markdown/remark/src/remark-escape.ts b/packages/markdown/remark/src/remark-escape.ts
index dd8a921ff..84cdf2efa 100644
--- a/packages/markdown/remark/src/remark-escape.ts
+++ b/packages/markdown/remark/src/remark-escape.ts
@@ -2,7 +2,7 @@ import type { Literal } from 'unist';
import { visit } from 'unist-util-visit';
// In code blocks, this removes the JS comment wrapper added to
-// HTML comments by vite-plugin-markdown.
+// HTML comments by vite-plugin-markdown-legacy.
export default function remarkEscape() {
return (tree: any) => {
visit(tree, 'code', removeCommentWrapper);