feat(web-pkg): support markdown YAML frontmatter in the text editor - #3272
Merged
Merged
Conversation
JammingBen
requested changes
Aug 31, 2026
Member
There was a problem hiding this comment.
One somewhat critical finding: having something between two --- inside a quote gets erased. E.g. a markdown file with:
> ---
> a: 1
> ---
Foo
Will result in Foo.
Some smaller findings, still worth looking into IMO:
- Keybinding keep working inside frontmatter. E.g.
ctrl/cmd + alt + 1destroys the frontmatter and makes it a headline. - Claude found that not passing a custom
markedinstance toMarkdownManagerwill make it use a singleton. This singleton gets appended every extension carrying amarkdownTokenizerand never gets cleaned up. This leads to more and more tokenizers getting appended and running. The solution is to create amarkedinstance ourselves per strategy and pass it to theMarkdownManager(and possibly the markdown extension?).
kulmann
force-pushed
the
feat/markdown-frontmatter
branch
from
September 1, 2026 14:03
2de6edf to
ade5535
Compare
Frontmatter and code block are very similar blocks, so align their visual styling.
AlexAndBear
force-pushed
the
feat/markdown-frontmatter
branch
from
September 2, 2026 00:04
c16e42e to
32d6cdf
Compare
Mirror code-block triple-enter exit behavior in frontmatter and align the frontmatter screen-reader hint with the actual shortcuts.
JammingBen
approved these changes
Sep 2, 2026
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.
Description
Adds a frontmatter custom node and integrates it into markdown toolbar and slashcommand-menu:
Related Issue
How Has This Been Tested?
Types of changes