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

Inline code blocks do not use a proportional font #26

Closed
azixMcAze opened this issue Jul 16, 2017 · 0 comments
Closed

Inline code blocks do not use a proportional font #26

azixMcAze opened this issue Jul 16, 2017 · 0 comments

Comments

@azixMcAze
Copy link

Hello,

Inline code like this do not use a proportional font when converted to PDF, contrary to the markdown preview in VSCode as you can see:
markdown-pdf_inline_code_font

It seems that font-family: inherit in markdown-pdf.css causes the problem:

/* for inline code */
:not(pre):not(.hljs) > code {
	color: #A31515;
	font-size: inherit;
	font-family: inherit; 
}
@yzane yzane closed this as completed in #41 Mar 19, 2018
yzane added a commit that referenced this issue Mar 19, 2018
Fix inline code not being monospaced (Fix #26)
tat3 pushed a commit to tat3/vscode-markdown-pdf-2 that referenced this issue Sep 4, 2022
Fix inline code not being monospaced (Fix yzane#26)
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

1 participant