How to use markdown in HTML tags

Source: Internet
Author: User
Tags html tags

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.