Closed mpark closed 5 years ago
@dbaynard may be able to say more than I can about why display: block
is in there...
This is a bug, introduced in 0b07bbc8 when the line span
tags were simplified — I didn't notice the clash.
<code class="sourceCode cpp"><span class="kw">constexpr</span></code>
This is treating the span as a line. The css should probably restrict that behaviour to pre > code.sourceCode > span
. I'm making the PR, now
Consider:
~~foo `constexpr`{.cpp} bar~~
Withpandoc foo.md --output foo.html --self-contained
this currently generates:The desired output would be something like:
This seems to be caused by the
display: inline-block
from https://github.com/jgm/skylighting/blob/8c650b6e4aafc4c5eafb82d6e3449f3a67e066ee/skylighting-core/src/Skylighting/Format/HTML.hs#L170. Changing this todisplay: inline
produces the desired output.