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'd like the enclosing <div> to include the classes I've specified in the source (or at least python.) I'm thinking of changing the style of different code blocks based on which language they are.
I've traced the issue to skylighting, in the formatHtmlBlock function. I think all that's needed is a change in the first line:
The issue comes in when adding background colors. Say I want to color all python blocks as blue and all bash as green, while everything else is black. Currently, it looks like this jsfiddle. With the proposed change, it'll look like this one. Note how in the first fiddle, also, the code lines are only highlighted to the end of each code line.
With a source like this:
pandoc generates
I'd like the enclosing
<div>
to include the classes I've specified in the source (or at leastpython
.) I'm thinking of changing the style of different code blocks based on which language they are.I've traced the issue to skylighting, in the
formatHtmlBlock
function. I think all that's needed is a change in the first line:to
I'm writing this as an issue to see if there'd be interest in a pull request for this change.
The text was updated successfully, but these errors were encountered: