cobalt.rs
cobalt.rs copied to clipboard
{% highlight %} does not respect disabling of syntax highlighting
The html generated from markdown is exceptionally clean, with the exception of the code blocks, which have a fixed styling like this:
<pre style="background-color:#2b303b;">
<span style="background-color:#2b303b;color:#c0c5ce;">ans = 42;
</span></pre>
It would be so much better if the code blocks emitted the <code>
tag without the fixed color syling, which would then allow us to style it using css.
So I'm seeing two bugs here
- We are not documenting support for disabling syntax highlighting (added in #407)
- Disabling of highlighting is limited to markdown code fences and needs to be extended to liquid
{% highlight %}
blocks. The workaround would be to instead use markdown code fences.
Classifying this as a bug due to the inconsistent behavior.
Oh, thanks!
syntax_highlight:
enabled: false
works perfectly.
This was fixed in https://github.com/cobalt-org/cobalt.rs/pull/973 and released in v0.18.0