div中的段落与parsedown [英] paragraphs inside div with parsedown

查看:540
本文介绍了div中的段落与parsedown的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,看下面的代码。

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

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




输出



<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?

为什么要减价额外创建一个大的< p> 为div的全部内容?

如何创建换行符,因为这不起作用?

How do I create newlines since this does not work?

可能的复制:Kirby:MarkdownExtra不会产生想要的段落,代替换行

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

有用的测试: http://parsedown.org/extra/

推荐答案

这看起来像是一个问题解析器。您应该在 https://github.com/erusev/parsedown-extra/issues。

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

这篇关于div中的段落与parsedown的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆