Markdown Official Document 1 There is a sentence:
Note This markdown formatting syntax is not processed within block-level HTML tags. e.g., you can ' t use markdown-style emphasis inside a HTML block.
Markdown can not be written in block-level HTML tags, that is, we do not write the following:
<div>
* * * I * * * * *
</div>
* * does not resolve to <strong></strong>.
But I am in the WordPress backstage uses the markdown plug-in PHP markdown Extra2 extends this function, may write this:
<div markdown= "1" >
* * * I * * * * *
</div>
The following are the output results:
<div>
<p><strong> Bold I </strong></p>
</div>
The reason why I want to use this function is to add Microdata3. Take my reading page and say, now this is the markdown part:
Time | title | author
---|---|---
2013.1.27| | Shakespeare
The portrait of 2013.1.28| Dorian | Oscar Wilde
The HTML for adding microdata is as follows:
<div itemscope itemtype= "Http://schema.org/Table" >
<!--table contents in this-->
</div>
With the help of PHP markdown Extra, you can embed markdown in a div block:
<div itemscope itemtype= "http://schema.org/Table" markdown= "1" >
<!--markdown form in this-->
</div>
In this way, I will add microdata to my form.