cwjohan / markdown-to-html

Command-line utility to convert Github Flavored Markdown to HTML.
MIT License
236 stars 86 forks source link

Bad handling of special characters with markdownb #28

Closed VictorLamoine closed 5 years ago

VictorLamoine commented 6 years ago
$ echo "Café" > test.md
$ cat test.md 
Café
$ markdown test.md 
<p>Café</p>
$ markdownb test.md 
View generated HTML in browser

The output of markdown is ok, but when using markdownb the generated HTML page contains:

<p>Café</p>
cwjohan commented 6 years ago

UTF-8 encoding? Should be supported.

Sent from my iPhone

On Apr 25, 2018, at 2:36 AM, Victor Lamoine notifications@github.com wrote:

$ echo "Café" > test.md $ cat test.md Café $ markdown test.md

Café

$ markdownb test.md View generated HTML in browser The output of markdown is ok, but the generated HTML page contains:

Café

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

VictorLamoine commented 6 years ago

Yes, utf-8:

$ echo "Café" > test.md
$ file -i test.md 
test.md: text/plain; charset=utf-8

Can you reproduce this bug?

cwjohan commented 6 years ago

No, sorry. I no longer have node.js runtime or dev environment.

However, there may be a flag you set to indicate you want to use UTF-8. Unfortunately, I can’t look at it right now and am travelling far from my computer.

Sent from my iPhone

On Apr 25, 2018, at 1:56 PM, Victor Lamoine notifications@github.com wrote:

Yes, utf-8:

$ echo "Café" > test.md $ file -i test.md test.md: text/plain; charset=utf-8 Can you reproduce this bug?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.