paragraphs inside div with parsedown

755 views Asked by At

How do I create paragraphs inside a <div markdown="1"> using Parsedown?

For instance, look at the following code.

Input

<div markdown="1">
Lorem ipsum, blah blah blah...\n

Another Lorem ipsum, blah blah blah...
</div>

Output

<div>
<p>
Lorem ipsum, blah blah blah...\n

Another Lorem ipsum, blah blah blah...
</p>
</div>

Why is markdown-extra creating one large <p> for the entire contents of the div?

How do I create newlines since this does not work?

Possible duplicate: Kirby: MarkdownExtra doesn't produce wanted paragraphes, renders line-breaks instead

Useful tester: http://parsedown.org/extra/

1

There are 1 answers

7
Emanuil Rusev On BEST ANSWER

This looks like an issue with the parser. You should report it at https://github.com/erusev/parsedown-extra/issues.