We just started using CodeMirror and so far it’s been exactly what we’re looking for. I am working on a Markdown editor and I love that using tags from @lezer/highlight we can style markdown syntax live!
Something I noticed is that the ``` (back-tick used to inline code) doesn’t seem to be among the tags that I can style.
Is there an example on how one would go about creating a custom tag for something like that? I could then use that example to define more tags like the triple back-tick used for code-blocks.
The spans are created when decorations are added for those syntactic elements by the highlighter. If they are not, either the style tag wasn’t added to the syntax tree nodes, or the tag wasn’t styled by the highlighter.
The final piece to the puzzle is styling Block Quotes. It looks like I can target the QuoteMark tag and that’s the > that starts the Quote Block. Unlike CodeBlocks, however, there doesn’t seem to be an enumerated value for something like QuoteInfo or QuoteText. Is that missing from the spec or am I missing something for targeting the actual text of a Block Quote?