Open duckwork opened 5 years ago
The div
is only there to fix a spacing issue. Can you just change the style of the pre
?
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:
H.div ! A.class_ (toValue "sourceCode") $
H.div ! A.class_ (toValue $ Text.unwords classes) $