-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[markdown] Harder, better, faster, stronger vite-plugin-markdown
#4137
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
fcd57c4
refactor: vite-plugin-md -> vite-plugin-md-legacy
bholmesdev 06b48fb
wip: add vite-plugin-md
bholmesdev 884f86b
feat: always apply jsx renderer
bholmesdev efa8918
fix: markHTMLString on VNode result
bholmesdev a9f2e04
feat: apply new vite-plugin-markdown!
bholmesdev 3c1dd73
fix: add meta export to md
bholmesdev fac6712
fix: remove needless $$metadata export
bholmesdev b1b0a27
fix: toggle to legacy plugin on flag
bholmesdev 0357fd9
fix: pass fileId to renderMarkdown
bholmesdev 6f3a8c2
test: raw and compiled content on plain md
bholmesdev c25c492
fix: escape vite env refs
bholmesdev 1eb27db
refactor: astro-md -> legacy-astro-flavored-md, astro-md-mode -> astr…
bholmesdev a540695
fix: import.meta.env refs with tests
bholmesdev 42f8d76
fix: add pkg.json to clientAddress
bholmesdev 9233347
fix: prefer JSX integration over Astro runtime
bholmesdev 1eae86d
Revert "fix: prefer JSX integration over Astro runtime"
bholmesdev ee49ec5
fix: remove .mdx check on importSource
bholmesdev 75f49da
chore: changeset
bholmesdev 5c1c284
chore: remove TODO
bholmesdev 90dbca5
fix: add back getHeadings
bholmesdev b7acaa4
fix: add pkg.json to astro-head fixture
bholmesdev 680c220
fix: default to Astro renderer for MDX and MD
bholmesdev 6fb1c59
feat: add "headings" and "frontmatter" to md layouts
bholmesdev 12602d7
refactor: remove legacy flag conditionals from legacy plugin
bholmesdev a223d39
fix: add back MDX warning when legacy is off
bholmesdev 4849516
test: getHeadings() glob
bholmesdev 9295bae
fix: add error on "astro.headings" access
bholmesdev 37b805b
feat: update docs example astro.headings => headings
bholmesdev 6cb3294
refactor: readFile as string w/ utf-8
bholmesdev f919a37
chore: remove astro metadata TODO
bholmesdev 353844b
refactor: stringify HTML once
bholmesdev 95e4d8c
fix: add pkg.json to glob-pages-css
bholmesdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'astro': minor | ||
'@astrojs/markdown-remark': patch | ||
--- | ||
|
||
Speed up internal markdown builds with new vite-plugin markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# vite-plugin-markdown-legacy | ||
|
||
Adds Markdown support to Vite, both at the top level as well as within `.astro` files. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
content.astro.headings
now throws! You'll get a nice error recommendingAstro.props.headings
instead 👍