Skip to content
Marios Zindilis edited this page Nov 17, 2015 · 4 revisions

markdown-in-html extra

The markdown-in-html extra allows for the use of the markdown="1" attribute in a block HTML tag, to have markdown processing be done on its contents. It is similar to the PHP Markdown-Attr Extra but with some limitations.

Note that for this to work, the Markdown syntax should not be in the same line as the block-level HTML element.

command-line usage

$ cat foo.txt
<div markdown='1'>
This is a **bold statement**.
</div>
$ markdown2 -x markdown-in-html foo.txt
<div>

<p>This is a <strong>bold statement</strong>.</p>

</div>
Clone this wiki locally