lindsey
(Lindsey Fogle)
1
概述
在仅限 Markdown 的编辑器中(即非我们目前正在 Meta 上测试的新编辑器模式),当尝试将一行文本设为斜体时,如果该文本的最后一个单词是粗体,则该行的首字母会被删除,末尾的 * 也会被删除,并且该行不会转换为斜体。
复现步骤
- 在仅限 Markdown 的编辑器中,写一行最后一个单词为粗体的文本,例如:
This is a super edge case where the last word in a sentence is **bolded.**
- 选中该行并使用 CMD+I 或工具栏快捷键将其设为斜体。
预期结果
该行应显示为:
*This is a super edge case where the last word in a sentence is **bolded.***
观察到的结果
该行显示为:
his is a super edge case where the last word in a sentence is **bolded.*
其他信息
3 个赞
Lhc_fl
(Linca)
2
我检查了一下,发现错误应该在这个地方
它没有检测到两侧的标记,只检测到了右侧(尾部)的标记。如果选中文本的右侧出现标记,它就会进入删除块。
这意味着按下 ctrl + b 时,something** 会变成 mething。
已经提交了一个 PR 来修复这个问题
7 个赞