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

How to change font size of generated pdf #40

Closed
NLinh2911 opened this issue Oct 24, 2017 · 4 comments
Closed

How to change font size of generated pdf #40

NLinh2911 opened this issue Oct 24, 2017 · 4 comments
Milestone

Comments

@NLinh2911
Copy link

I have been trying to change the font size. The size was too big. I have tried to change the markdown.preview.fontSize from 14 to 11 but the final pdf is not changed.

I don't see the settings for changing font size in mardown-pdf settings.

Any suggestion ??

@angelok1
Copy link

I know this isn't ideal, but you can edit the css that generates it... go to the extension and edit styles/markdown.css (https://github.com/yzane/vscode-markdown-pdf/blob/master/styles/markdown.css)

@anath2
Copy link

anath2 commented Nov 16, 2017

You can also create your own .css file, add the style for font size you want and then point to it in your settings.json file:

"markdown-pdf.styles": [
    "path/to/your/markdown.css"
]

@BlueM
Copy link

BlueM commented Apr 14, 2018

Remark: I found that relative paths are interpreted relative to the directory containing the Markdown file or – if it is defined – the workspace root path. As the Readme contains examples such as ".vscode/markdown-pdf.css", I initially had expected that the paths are interpreted relative to the user’s home directory, which is not the case.

@yzane yzane added this to the 1.0.3 milestone Apr 28, 2018
yzane added a commit that referenced this issue Apr 30, 2018
yzane added a commit that referenced this issue Apr 30, 2018
@yzane
Copy link
Owner

yzane commented Apr 30, 2018

Please upgrade to Markdown PDF ver1.0.3 and try it.

@yzane yzane closed this as completed Apr 30, 2018
tat3 pushed a commit to tat3/vscode-markdown-pdf-2 that referenced this issue Sep 4, 2022
tat3 pushed a commit to tat3/vscode-markdown-pdf-2 that referenced this issue Sep 4, 2022
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

5 participants