Closed LudvigHz closed 3 years ago
It was not intended that the code-block-font-size
also modifies the inline listings. I haven't tested that feature thoroughly. Can you change your PR so that the code-block-font-size
is only applied to code blocks and there is no option code-inline-font-size
? I believe the font size for inline listings should always match the surrounding text and there should be no customization option for that.
I see. I have updated this to only fix the issue with code-block-font-size
affecting inline listings.
Thank you!
Thanks for this great template!
I often find myself needing to change the
code-block-font-size
to a smaller font in order to avoid line wraps in listings. However this also affects inline code. So I've been having to avoid using this variable and instead opt to something like this to avoid the issue:This PR is an example of how to avoid this by separating the font size used in
lstlisting
environments and other listing environments (i.e. inline).Let me know if I should instead fall back to
code-block-font-size
for inline listings instead if you want it to be backwards compatible. (although I prefer defaulting to the surrounding text, as the current implementation does).I will update the documentation if this implementation is approved