It works beautifully, but I have a question regarding lists. If I do nothing, the list bullet or number appears dark gray and the text in my text color. If I add to the above list the entry:
{tag: tags.list, color: "#DBDB59"},
the whole list appears in color. Perfect, but how to change only the color of the bullets (in my case “-”) or the list numbers like “2.”?
Those do not get assigned a separate highlight tag by default, so you’d have to add a rule for that to your markdown configuration. Something like…
Thanks! But Where is styleProps defined?
I given up on the list markers, but now I need to change the color of ``` fences. I’m able to change color of the inside code using HighlightStyle and tags.monospace. But the fences remains very dark. Or they have a special tag value? Inside the markdown parser there is a FencedCode node type that could be of interest.
Thanks!
I mistyped—that should be styleTags comes from @lezer/highlight. The ``` syntax is parsed as "CodeMark" (but so are the single backticks around inline code).
that I interpret, maybe wrongly, that CodeMark has already a tag of tags.processingInstruction. But if I associate to this tag a highlight style, it is not applied.
Confused.
mario