feat: add GFM alerts support in markdown preview#744
Open
touero wants to merge 1 commit intoiamcco:masterfrom
Open
feat: add GFM alerts support in markdown preview#744touero wants to merge 1 commit intoiamcco:masterfrom
touero wants to merge 1 commit intoiamcco:masterfrom
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.
Summary
This PR adds support for GitHub Flavored Markdown (GFM) Alerts in markdown-preview.nvim rendering.
close #632, close #663, close #715
Supported syntax examples:
Note
This is a note.
Warning
This is a warning.
What Changed
Files changed
Implementation Details
The target app uses an older build stack (Next 7 / webpack 4).
Directly importing newer package builds caused parse/build issues in this environment, so this PR uses a compatibility wrapper in app/
pages/markdown-it-github-alerts-compat.js, adapted from markdown-it-github-alerts behavior, and wires it into the existing markdown-it
plugin chain.
This keeps the rendering behavior aligned with GitHub-style alerts while remaining compatible with the current project toolchain.
Verification
Notes