Markdown mixed with HTML stops links from being rendered?

Summary:

  1. Hugo uses the Goldmark markdown parser.
  2. Goldmark adheres to the CommonMark specification.
  3. The CommonMark specification describes how to identify HTML blocks. In particular, see items 6 and 7, specifically the end condition.

This is treated as one HTML block.The encapsulated markdown will be rendered as-is.

<div>
This is **bold** and this is _emphasized_.
</div>

This is treated as two HTML blocks. The encapsulated markdown will be converted to HTML

<div>

This is **bold** and this is _emphasized_.
</div>
4 Likes