Replies: 1 comment 1 reply
-
Are we aiming for compliance to the CommonMark spec? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
markdown is also already in prettify and is what you need.
So our markdown support is also important, using this pr to support basic markdown
For now, I'm going to use this ebnf syntax and see if I can match it with prettify later.
https://www.mediawiki.org/wiki/Markup_spec/EBNF
Why not an existing library?
Because converting from an existing ast to biome's cst and ast is tedious and not always possible, just like the css implementation, we can achieve a more fine-grained improvement by doing it ourselves.
This pr only implements the ast part of markdown, we will add support for format/lint when the ast part is stable
#3718
Reference Links
https://www.mediawiki.org/wiki/Markup_spec/EBNF
https://github.github.com/gfm/
https://github.com/syntax-tree/mdast
https://commonmark.org/
Progress tracking
project struct init feat(markdown): support markdown grammar code generation #3775
grammer implementation
block
inline block
extension support
Beta Was this translation helpful? Give feedback.
All reactions