[BUG] font-family
ignored in html_export
due to user agent stylesheet for <code>
#3104
Closed
2 tasks done
Labels
Describe the bug
Run this code:
You will get an
test.html
output file. Open it in Chrome.I'm on macOS, and it shows up like this:
Notice the lines are not aligned properly on the right side. Here is why:
As you can see, Chrome's user agent stylesheet causes the
<code>
element to reset thefont-family
on the<pre>
element back tomonospace
. All we need is to have Rich add afont-family: inherit;
on the<code>
element and everything is fine:Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Mac with Chrome
The text was updated successfully, but these errors were encountered: