How does one escape backticks in markdown?

后端 未结 3 481
天涯浪人
天涯浪人 2020-12-29 02:54

I am writing some documentation in markdown and I want to document how to create a text file using a bash HEREDOC. Here is the command I want to document:

3条回答
  •  再見小時候
    2020-12-29 03:08

    This code block below does the trick.

    ```
    # cat > /tmp/answers.txt < value1=blah
    > value2=something else
    > value3=`hostname`
    > value4=onetwothree
    EOT
    ```
    

    The three Backtick means it's snippet of code and a snippet must end with three more Backtick.

    For more help with Markdown refer this CheatSheet.

提交回复
热议问题