Making sure the colours are correct for Markdown code blocks isn't a very easy problem to solve, as it's somewhat limited to the way Pandoc's Skylighting renders it's HTML. Some bits of syntax that should be given a class such as .arguments, for instance are simply given a generic .function class.
Take this Elm code block for instance:
Visual Studio Code — Colors
The colors also differ from Visual Studio Code's version of Monokai, but due to the way Pandoc's Skylighting structures it's code block HTML, it's going to be very difficult (if not impossible) to mimic. A simple example is how it renders "default" colours.
My default colour is white which covers characters such as :, [] and (). Visual studio code highlights some of these characters — it's just not possible with Pandoc's Skylighting as it doesn't wrap these characters in <spans> with .class names.
Perhaps Elm is the wrong standard to compare
Visual Studio Code's implentation of Elm is very good, color-wise. I don't think Skylighting does Elm particularly well, so perhaps using Python as a benchmark is a better idea (it's more likely to be perfected).
Making sure the colours are correct for Markdown code blocks isn't a very easy problem to solve, as it's somewhat limited to the way Pandoc's Skylighting renders it's HTML. Some bits of syntax that should be given a class such as
.arguments
, for instance are simply given a generic.fu
nction class.Take this Elm code block for instance:
Visual Studio Code — Colors
The colors also differ from Visual Studio Code's version of Monokai, but due to the way Pandoc's Skylighting structures it's code block HTML, it's going to be very difficult (if not impossible) to mimic. A simple example is how it renders "default" colours.
My default colour is
white
which covers characters such as:
,[]
and()
. Visual studio code highlights some of these characters — it's just not possible with Pandoc's Skylighting as it doesn't wrap these characters in<spans>
with.class
names.Perhaps Elm is the wrong standard to compare
Visual Studio Code's implentation of Elm is very good, color-wise. I don't think Skylighting does Elm particularly well, so perhaps using Python as a benchmark is a better idea (it's more likely to be perfected).
Other Skylighting issues