-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code samples rendering wrong in iBooks #49
Comments
Thanks for reporting this. Strange, it looks like just the type signatures, not the function definitions are rendered in the wrong font. @trevororeilly do you have any ideas? |
It does kind of look that way, but that's just a function of what gets highlighted; note that the highlighted bits ( |
Ah, right I do see that now. |
@pbrisbin Apologies for not getting back sooner, was on client work for most of the day. Let me investigate and see what I can find. |
It looks like iBooks is doing something (Javascripty, maybe) that overrides these classes, possibly because they're Edit: amusingly, setting a |
Per SO, you can retain styles using iBooks Author, so it may be worth seeing what output that generates for something like this. It'll certainly entail more than just the pandoc output, unfortunately. |
@pbrisbin @trevororeilly How's this looking? |
When I read via the Kindle app on my phone (Nexus 5), I also see non-monospaced font for the code samples -- it does look correct on my actual Kindle though. |
Throughout the ePub version, the monospace font for code samples is rendered incorrectly in iBooks if you choose any reading font besides "Original"—it appears the style sheet isn't overriding some of the classes. See here, for example (using Charter):
As you can see, the bits that are wrapped in syntax highlighting spans (
<span class="dt">
etc. in the XHTML source) are falling back to the main typeface instead of the monospace typeface.The text was updated successfully, but these errors were encountered: