You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just restarted using marp after a while. After upgrading all all my marp packages I noticed a problem in the the syntax highlithing that I didn't have before.
Example slide:
The problem is that the normal strings in the code block are not picking up the color defined in my css.
I think the problem is the normal strings do not get assigned any classes and are not wrapped in <span>. here's the generated HTML:
It seems that highlight.js does not yet support detailed highlighting for some Python keywords. Many similar issues about Python code highlighting are hanging from highlightjs/highlight.js#2500.
You also can test the current tokenization of highlight.js on https://highlightjs.org/demo. Actually we can see functools is not part of any class by inspecting DOM.
If you were customized the theme from Marp Core theme, the default text color of not highlighted keywords in the code block will become black whenever invert class is not assigned to the slide page. To set your own default color in you style, set color CSS declaration to <code> or <pre>:
I've just restarted using marp after a while. After upgrading all all my marp packages I noticed a problem in the the syntax highlithing that I didn't have before.
Example slide:
The problem is that the normal strings in the code block are not picking up the color defined in my css.
I think the problem is the normal strings do not get assigned any classes and are not wrapped in
<span>
. here's the generated HTML:you can see that
functools
for instance is not part of any class? I was expecting it to be parthljs
class?The text was updated successfully, but these errors were encountered: