pragdave / earmark

Markdown parser for Elixir
Other
868 stars 136 forks source link

Remove enclosing `<p>` tag with an option, say `--inner-html` #418

Closed RobertDober closed 3 years ago

RobertDober commented 3 years ago

This is useful when Earmark.as_html!(..., inner_html: true) is called in an EEx template (in my use case a Phoenix app) and goes into an inline element

E.g.

<span><%= Earmark.as_html!(....)%></span>
<span><%= Earmark.as_html!(....)%></span>