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

Unbreakable space converted to normal space #143

Closed
Buzut opened this issue Apr 10, 2020 · 1 comment
Closed

Unbreakable space converted to normal space #143

Buzut opened this issue Apr 10, 2020 · 1 comment

Comments

@Buzut
Copy link

Buzut commented Apr 10, 2020

On generated HTML unbreakeble spaces (U+00A0) are converted to normal spaces (U+0020).
It's quite annoying because it allows line breaks on elements in the middle of expressions that shouldn't break.

In normal text, the workaround is to jut throw the   HTML entity, but when one wants to specify an unbreakable space in code between backquote "`", the HTML entity would appear as is.

Then, the workaround is to use <code>xxx&nbsp;xxx</code> but as there's no escaping, it sometimes lead to issues and is very cumbersome.

@stevenjoezhang
Copy link
Member

stevenjoezhang commented Jul 3, 2020

This problem should have been fixed: markedjs/marked#1532
Are you using the latest hexo-renderer-marked plugin?

npm i hexo-renderer-marked@3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants