-
Notifications
You must be signed in to change notification settings - Fork 433
markdown in html
Marios Zindilis edited this page Nov 17, 2015
·
4 revisions
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.
$ 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>
(Return to Extras page.)