【问题标题】:How do you escape pipe character in bitbucket markdown?如何在 bitbucket markdown 中转义管道字符?
【发布时间】:2015-02-10 16:26:34
【问题描述】:

我想将以下内容添加到 bitbucket wiki:

Key         | Description                                   |Default        |
:-----------|:----------------------------------------------|:--------------|
env         |Execution context {development|test|production}|development    |

Markdown 对许多字符都有反斜杠转义,但管道 (|) 没有。我看到了一个使用{development|test|production} 的解决方案,但这不起作用,因为您不能在 bitbucket markdown 中使用 html。

有没有人找到一种方法在 bitbucket 的降价表中的单元格内容中包含管道字符?

【问题讨论】:

    标签: special-characters markdown bitbucket


    【解决方案1】:

    Bitbucket 的 Markdown 可能不支持 HTML,但它支持 Unicode。在表格单元格内,您可以使用另一个 看起来像 管道字符的字符,例如 (0x23AE, INTEGRAL EXTENSION):

    Key         | Description                                   |Default        |
    :-----------|:----------------------------------------------|:--------------|
    env         |Execution context {development⎮test⎮production}|development    |
    

    此字符不会触发 Bitbucket 的 Markdown 表语法。

    【讨论】:

    • 好的,所以管道没有转义?不过,这个解决方案对我来说很好,所以谢谢
    • @NectarSoft,我找不到合适的逃脱方法。
    • 这是一个很好的解决方案,只是希望 bitbucket 支持 html 实体。请投票:bitbucket.org/site/master/issues/6930/…
    猜你喜欢
    • 2016-07-24
    • 2014-07-09
    • 2013-03-21
    • 2018-07-24
    • 1970-01-01
    • 1970-01-01
    • 2017-06-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多