引用斜体文本后跟标点符号会注入额外的空格

Example (pasted from another forum):

when I mention a book like The Great Gatsby or a movie like Breaker Morant , and when someone later quotes that passage,

Raw:

# Original:
when I mention a book like *The Great Gatsby* or a movie like *Breaker Morant*, and someone later quotes that passage,

# Pasted:
when I mention a book like  *The Great Gatsby*  or a movie like  *Breaker Morant* , and when someone later quotes that passage,

This appears to be in the HTML-to-Markdown pipeline, given that it shows up in a cross-site copy paste.

5 个赞

Yes this has been a bug for a good long while. It would be lovely if you could work on it, low-pri!

4 个赞

我也正准备发帖,才发现这个旧帖子。我经常遇到粗体文本的 bug,但引用时不会。当我选择包含粗体的格式化文本(可能还有斜体)时,粗体文本和标点符号之间会出现一个空格。

源文本:

复制粘贴后的 Markdown 版本(Grammarly 正在标记多余的空格):

渲染后的版本,可以看到空格很奇怪。

我经常将文本从 WordPress 移动到 Discourse,所以经常遇到这个问题。(我更希望从 Google Docs 移动到 Discourse,但不知何故,Discourse 在从 Google Docs 粘贴时无法识别粗体和斜体。)