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

Backslash false encoded #124

Open
jonguenther opened this issue Apr 3, 2019 · 4 comments
Open

Backslash false encoded #124

jonguenther opened this issue Apr 3, 2019 · 4 comments
Milestone

Comments

@jonguenther
Copy link

jonguenther commented Apr 3, 2019

Version: 1.2.0

OS: Win 7 Professional SP1

When rendering a markdown document with backslashes, markdown-pdf outputs ¥ instead.

I tried to render following snippet:

    - C:\\Users\\`<your username>`\\Anaconda3\\Scripts
    - C:\\Users\\`<your username>`\\Anaconda3
    - C:\\Users\\`<your username>`\\Anaconda3\bin
    - C:\\Users\\`<your username>`\\Anaconda3\\library\\bin

This is the output:

https://i.imgur.com/8IveLMR.png

Retried it on an empty document, with the same results. Repeating it with single backslashes does not change the output either.

I used UTF-8 as encoding and haven't changed the default settings.

@eddyizm
Copy link

eddyizm commented Jun 27, 2019

I'm having the same issue and am not able to find a work around.

@designingSparks
Copy link

designingSparks commented Aug 26, 2019

I have the same issue. I have also tried using the HTML entity for a backslash '&#92;' but to no avail.

@Armaghast
Copy link

Hello,
here is a quick and dirty workaround: in markdown document, when required, surround double backslashes by HTML tags code: <code>\\</code>

Googling backslash converted to Yen symbol, I read some interesting posts regarding Japanese font Meiryo (like this one, for instance); then, checking the HTML produced by markdown-pdf, I found out this line:

body { font-family: "Meiryo", "Segoe WPC", "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback"; }

markdown-pdf's setting "markdown-pdf.styles" is designed to overwrite default styles, that may be the right workaround. Not tested yet.

@yzane yzane added this to the 1.4.4 milestone Mar 17, 2020
@yzane
Copy link
Owner

yzane commented Mar 18, 2020

Please upgrade Markdown PDF to ver1.4.4 and try.

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