simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.02k stars 132 forks source link

How are unbreakable spaces interpreted? [Question] #170

Closed Uhter closed 2 years ago

Uhter commented 2 years ago

Hi,

I don't understand how are unbreakable spaces interpreted?

I use ghostwriter to create markdown files. If I write :

There are one unbreakable space before colon : done  
There are fifteen before colon               : done

Colons are vertically aligned in the code AND in the ghostviewer preview. That's what I want and I use unbreakable spaces for that. But markdown-viewer shows this with any theme :

There are one unbreakable space before colon : done There are fifteen before colon               : done

What's the reason why please?

simov commented 2 years ago

Probably I don't understand the questions but in general only fenced code blocks and probably inline code blocks should preserve regular empty spaces.

Uhter commented 2 years ago

Hello @simov

That's right, and I think ghostwriter do that in a different way than the others editors. This was the reason why I didn't understand. So, it's not markdown-viewer's fault.

Thanks for your help ;)