【发布时间】:2012-09-07 03:55:49
【问题描述】:
已经得到以下HAML代码,结合Markdown:
%h2.slogan.align-center
:markdown
No more big words. Enough of the abbreviations.
**Project management for the rest of us.**
生成 HTML:
<h2 class='slogan align-center'>
<p>No more big words. Enough of the abbreviations.<br/>
<strong>Project management for the rest of us.</strong></p>
</h2>
我希望 HTML 看起来像(省略周围的 <p> 标签):
<h2 class='slogan align-center'>
No more big words. Enough of the abbreviations.<br/>
<strong>Project management for the rest of us.</strong>
</h2>
创建该 HTML 的 HAML/Markdown 是什么?
【问题讨论】:
-
如果您有多个段落块怎么办。您要全部删除吗?
-
我不会有超过一个段落块
-
@cole-johnson 谢谢,我将如何将正则表达式与 HAML 和 Markdown 一起使用?
-
你不想你永远不想为此使用正则表达式。