How do I type html in a markdown file without it rendering?

Generally, you can surround the code in single backticks to automatically escape the characters. Otherwise just use the HTML escapes for < &lt;and > &gt;.

i.e.

she says &lt;h1&gt; is large or she says `<h1>` is large

You can escape the < characters by replacing them with &lt;, which is the HTML escape sequence for <. You're sentence would then be:

she says &lt;h1> is large

As a side note, the original Markdown "spec" has the following to say:

However, inside Markdown code spans and blocks, angle brackets and ampersands are always encoded automatically. This makes it easy to use Markdown to write about HTML code. (As opposed to raw HTML, which is a terrible format for writing about HTML syntax, because every single < and & in your example code needs to be escaped.)

...which means that, if you're still getting tags when putting them in backticks, whatever renderer you're using isn't "compliant" (to the extent that one can be compliant with that document), and you might want to file a bug.

Tags:

Html

Markdown