如何对某些文本片段转义 Markdown 解析器?
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 markdown 中使用
标签将导致解析器跳过这两个标签之间的任何内容。 RedCloth 文档Using the
<notextile></notextile>
tags in the markdown will cause the parser to skip whatever is between those two tags. RedCloth docs同样使用
(c)
将产生 (c) 而不是 ©。Also using
(c)
will yield (c) rather than ©.对于纺织品:我尝试了各种格式选项,例如
== ^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^
.