showdown
showdown copied to clipboard
Characters " " inside Code Block instead of space
I'm a new Showdown user, experimenting the CLI tool to convert my markdown pages into static html files for my blog. I'm very happy with it so far. However, I just stumbled upon a Gotcha while copy/pasting my directory structure inside a block of code (using the triple backticks).
Does someone knows why the rendering with Showdown is like this:
tree
├── folder1
│ └── a.txt
└── folder2
└── b.txt
While it is like this in other markdown to html converter (and also here on Github):
tree
├── folder1
│ └── a.txt
└── folder2
└── b.txt
It looks like Showdown is putting  
inside the <pre><code>
tag instead of
to render the space character.
I'm really not sure if I'm misusing it or if it's a bug. Does anyone one has an idea about it?
Bug confirmed.
The input text has non-breaking spaces inside the code block which get converted to the correspondent html entity
. However, then the code block is encoded again, changing &
to &
resulting in that weird behavior.
i met the same problem
Same here, I got this: ¨NBSP;
Same here, => {
becomes => {
in <pre><code>
and <code>
blocks. Inspecting reveals =&gt {
.
we are working on a fix for this (and other related issues).
should be fixed. Will be merged in develop soon.