hexojs / hexo-renderer-marked

Markdown renderer for Hexo
MIT License
174 stars 95 forks source link

bold mark error #177

Closed watermelon-ping closed 3 years ago

watermelon-ping commented 3 years ago

It is found that when hexo-renderer-marked renders bold mark (bold), a space must be added after it, otherwise it cannot be rendered as bold. There is no space requirement on other editors such as vscode.

SukkaW commented 3 years ago

Would you mind providing a demo for us to reproduce the issue? For example, the content of your markdown file.

watermelon-ping commented 3 years ago

image It's the code and hexo display.

tomap commented 3 years ago

You should post this issue in the project https://github.com/markedjs/marked which is used by this plugin

tomap commented 3 years ago

You can reproduce your issue there: https://marked.js.org/demo/?text=%23%20**1.**dfdf%0A&options=%7B%0A%20%22baseUrl%22%3A%20null%2C%0A%20%22breaks%22%3A%20false%2C%0A%20%22gfm%22%3A%20true%2C%0A%20%22headerIds%22%3A%20true%2C%0A%20%22headerPrefix%22%3A%20%22%22%2C%0A%20%22highlight%22%3A%20null%2C%0A%20%22langPrefix%22%3A%20%22language-%22%2C%0A%20%22mangle%22%3A%20true%2C%0A%20%22pedantic%22%3A%20false%2C%0A%20%22sanitize%22%3A%20false%2C%0A%20%22sanitizer%22%3A%20null%2C%0A%20%22silent%22%3A%20false%2C%0A%20%22smartLists%22%3A%20false%2C%0A%20%22smartypants%22%3A%20false%2C%0A%20%22tokenizer%22%3A%20null%2C%0A%20%22walkTokens%22%3A%20null%2C%0A%20%22xhtml%22%3A%20false%0A%7D&version=master

SukkaW commented 3 years ago

As @tomap said, it is an issue of marked.js since it can be reproduced even without Hexo being involved.

I am closing the issue now.