Skip to content
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 block font size too large #13

Closed
pkazmier opened this issue Sep 10, 2021 · 3 comments
Closed

Code block font size too large #13

pkazmier opened this issue Sep 10, 2021 · 3 comments

Comments

@pkazmier
Copy link

pkazmier commented Sep 10, 2021

I think the book would benefit from a smaller font size for code blocks. In both the PDF and epub versions (didn’t look at mobi), the code block font looks larger than the body text font. To minimize wrapping of code blocks, I think a smaller monospace font size would look better. It would also look more harmonious with the body font size.

(Same comment applies to your blog posts IMO).

For example, here is a screenshot from the Rust Book, which I think has the right proportion of body font size to code block size:

IMG_0391

@sylvain101010
Copy link
Member

Thank you very much for the feedback!

I agree with you, and will try to fix it for the next version (v2021.18), it should be a simple matter of tweaking some pandoc flag / adjusting some CSS.

Regarding the blog, it's now fixed :)

@sylvain101010
Copy link
Member

sylvain101010 commented Oct 8, 2021

  • epub
  • mobi
  • pdf

@sylvain101010
Copy link
Member

Fixed in v2021.40 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants