github 通过电子邮件收到的问题评论不会呈现代码块

github issue comment received via email won't render code block

我有一个 GitHub 问题评论 here(向下的第三条评论),我想通过将其部分呈现为代码块来对其进行编辑,使其看起来更漂亮。

但是没用;三个反引号显示为文字文本。

有人知道为什么吗?

GitHub 对待通过电子邮件收到的评论与在网络上输入的评论不同 UI。如果您查看您的评论,您会看到第三个评论在您的名字旁边显示了一个信封图标,鼠标悬停文本显示 "This comment left via email reply."

a blog post 中,GitHub 建议在电子邮件回复中不允许使用 Markdown 格式:

We figured out early on in testing that we couldn't expect people to write Markdown. People are going to be dumping code or stacktraces, and will expect them to look nicely.

后来,给出这个警告:

Plain text email is vastly preferred. Essentially, we strip all HTML from HTML emails before formatting.

关于如何处理通过电子邮件发送的问题评论的格式,我找不到更好的描述,但我认为如果您通过电子邮件回复,您将无法使用 Markdown。