paragraphs inside div with parsedown

痴心易碎 提交于 2019-12-11 03:39:28

问题


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:


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



来源:https://stackoverflow.com/questions/27005188/paragraphs-inside-div-with-parsedown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!