Bigsomg
V2EX  ›  编辑器

Markdown 怎样转义`字符,也就是 Tab 键上面这个

  •  
  •   Bigsomg · Jun 24, 2017 · 4206 views
    This topic created in 3326 days ago, the information mentioned may be changed or developed.

    是这样的,我要在``里面放一个`,但是发现好像在里面的不能转义。。请问这个怎么搞?

    3 replies    2017-06-25 00:25:47 +08:00
    xueb96
        1
    xueb96  
       Jun 24, 2017 via Android
    \`
    cxbig
        2
    cxbig  
       Jun 24, 2017
    这个要用代码块才行。如:

    ```
    create database `testing`;
    ```
    geelaw
        3
    geelaw  
       Jun 25, 2017
    <code>`</code>

    或者 `` ` ``,行内代码前后必须有相同数量的 ` 才被关闭,当然这里会多出来空格。

    另一个解决方法是改写编译器,我目前就是这样做的,例如

    ``code:`:`` 会被编译成 <code>`</code>

    `math:x^2+y^2=z^2` 会被编译成 KaTeX 公式
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:11 · PVG 05:11 · LAX 14:11 · JFK 17:11
    ♥ Do have faith in what you're doing.