-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fmt is not compatible with some front matters in markdown files #19458
Comments
Fmt relies on the package dprint-plugin-markdown which in turn uses pulldown-cmark. Right now metadata tags are not yet supported, but the required changes are already created, source here. As per the project specs it would get supported in |
Just ran into this problem while building out a site using Lume and it looks like |
Until this resolved, I'm using Prettier via
|
Also related to formatting markdown files. Deno fmt cannot format file that have pandoc syntax also. |
The front matter std library supports different formats of frontmatters, but these formats are not recognized by fmt. For example, let's say I have the following markdown file with a TOML front matter:
After running
deno fmt
, the file is changed to:Now the front matter is no longer detected by the std library.
The text was updated successfully, but these errors were encountered: