If want to escape/comment a shortcode (aka. prevent from executing shortcode) in a .md, and display the shortcode in the output. To escape a shortcode you need to use hugo commenting syntax /**/. Here is the how you escape/comment the shortcode. Here are the examples.

{{</* myshortcode */>}}

Output

{{< myshortcode >}}

Likewise for escaping shortcodes with inner text

{{%/* myshortcode "Header" */%}}
Inner Text
{{%/* /myshortcode */%}}

Output

{{% myshortcode "Header" %}}
Inner Text
{{% /myshortcode %}}