An HTML block is a group of lines that is treated as raw HTML (and will not be escaped in HTML output).
Simply put, the Markdown content inside that <div> tag will be treated as raw HTML. The only solution is to modify your site so that HTML blocks are not employed, or convert that specific section to HTML tags (defeating the point of using Markdown).
Thank you for your help. In the link your posted I found a example exactly what I need:Example 133
It says that if the HTML tag ends with the following blank line, the contents get interpreted as CommonMark.
Seems good.This is my example in first post.That’s what I want.
But when I modify my site like this. It still cant’ work as I expect.
You can simply try to let caddy render a markdown file with the content I just provided. The you can find the difference.
After looking through the source code of caddy and its markdown processor blackfriday. I find blackfriday actually support CommonMark spec or something like. At the bottom of this page I find the thing exactly what I want. But after I tested caddy 0.10.3, it still can’t work. I think you can change the call at there to blackfriday.MarkdownCommon() may work. @matt