Butterfly
Butterfly copied to clipboard
[Enhancement]: Add syntax highlighting to code blocks in markdown
trafficstars
Which feature is your request related to?
2.0 Nightly Version
Describe your request for enhancements!
Currently the code block is just monospace text. Add syntax highlighting to it.
Additional context
How should we add codeblock styles? If you want to have Github Dark, Dracula or more, how should we add it? The current styles doesn't allow you to use the material style and additionally use a different style for code blocks. How should we add it?
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
We can use https://lib.rs/crates/synoptic for parsing.
Then we can just use the classes code-comment, code-boolean, ...
Maybe we should make something like substyles to enhance the current Material Theme with code styles like Github Dark, ...