-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fixed all _xx_ into *xx* #727
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
要不要统一全用 *?省得啥时候有改动的时候还要记得这个坑……
我先试一下 VuePress 吧,如果 VuePress 没有这个问题就不整理了 |
VuePress 用的是 markdown-it,我试了一下也是这样的。 |
我本地试了一下 VuePress 似乎没有这个问题,x 中午 都是正常显示斜体字 |
不止看内容的,应该要看前后没有空格的。 |
我复现了 |
感觉这不像是巧合。。莫非 markdown 规范有什么我们没注意到的细节吗? |
我看了一下,是 GFM 规定的……对于中文来说,只能用 |
|
我今天仔细考虑了一下,首先为什么下划线不生效及其原因已经通过 GFM 的描述得知了,不是 bug;第二,这个理由不足以促使英文原版从下划线改为星号 总结一下我的建议:
如果我们觉得 OK 的话,今后可以按照这个约定来处理:) |
可是我理解按 GFM 的规则,中文内容大多数内容应该都会不生效? |
好吧,那不纠结了,中文版斜体粗体全部换用星号吧 |
经过测试,发现两个下划线之间的字符少于等于两个时,不会被转换为
<em>
,因此把文章里所有字符数少于等于 2 的下划线对换成了星号对,即可修复问题。components.md
文件没有改动,因为新版已经在 review 中了谢谢
Ref: #725