Skip to content

Commit

Permalink
Add docs for rawHtml to README
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Mar 11, 2015
1 parent a75289b commit c6ac4b4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,33 @@ Default: `false`
Conform to obscure parts of `markdown.pl` as much as possible. Don't fix any of
the original markdown bugs or poor behavior.

### rawHtml

Type: `boolean`
Default: `false`

Don't look inside HTML content, just output the raw HTML as is. If you have markup
with embedded HTML like this

some markup
<div>
a = b * c * d;
</div>

By default marked will turn that into

<p>some markup</p>
<div>
a = b <em> c </em> d;
</div>

`rawHtml: true` will change that output to

<p>some markup</p>
<div>
a = b * c * d;
</div>

### sanitize

Type: `boolean`
Expand Down

0 comments on commit c6ac4b4

Please sign in to comment.