Repository navigation
fix: .md fences render in astro dev (prerelease.7) - #22
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
On a
.mdpage with no React island, the injected fence script failed inastro devwith@vitejs/plugin-react can't detect preamble: @astrojs/react installs React's fast-refresh preamble only throughbefore-hydration, which runs only on pages with an island.The script now imports
@vitejs/plugin-react/preamble(the plugin's own virtual module, empty outside dev) before the diagram code, whenwindow.$RefreshReg$is not already set.installs the React preamble before it loads the .md fence components(RED then GREEN); suite 220 passed, 2 skipped; tsc clean..mdpage with two fences renders 12 and 8 nodes, no page errors, inastro devand inastro preview.1.0.0-prerelease.7; CHANGELOG and Troubleshooting updated.