如何对某些文本片段转义 Markdown 解析器?

发布于 2024-12-12 02:25:57 字数 132 浏览 5 评论 0原文

我正在使用 Textile 为特定页面生成 HTML,并且在副本中,需要生成不带版权符号的 (c)。不幸的是,纺织品总是这样做。

纺织中有没有一种方法可以逃避对其进行更改的解析(我知道我可以在“c”的两侧放置空格,但这看起来不太好)?

I'm using textile to generate HTML for a specific page and in the copy, there is a need for (c) to be generated without the copyright symbol. Unfortunately, textile always does it.

Is there a way in textile to escape the parsing it does to change it (I know I could put spaces on either side of the "c," but that doesn't look nice)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

○闲身 2024-12-19 02:25:57

在 markdown 中使用 标签将导致解析器跳过这两个标签之间的任何内容。 RedCloth 文档

Using the <notextile></notextile> tags in the markdown will cause the parser to skip whatever is between those two tags. RedCloth docs

所谓喜欢 2024-12-19 02:25:57

同样使用 (c) 将产生 (c) 而不是 ©。

Also using (c) will yield (c) rather than ©.

世界如花海般美丽 2024-12-19 02:25:57

对于纺织品:我尝试了各种格式选项,例如 == ^2^ ==^2^notextile.notextile..@ ^2^ @,但没有其中产生了预期的结果。最后,我发现使用 \^2\^ 可以正确输出 ^2^

for textile:I attempted various formatting options such as == ^2^ ==, <notextile> ^2^</notextile>, notextile., notextile.., and @ ^2^ @, but none of them produced the desired result. Finally, I found that using \^2\^ correctly outputs ^2^.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文