Slim 的一个新问题
我期待以下 Slim 模板
div class="header"
h2 slim head
p a test example of
span Slim
span a new line with span
p
| expected a test example of <span>Slim</span>
生成:
<div class="header">
<h2> slim head </h2>
<p>a test example of <span>Slim</span></p>
<span>a new line with span</span>
<p>expected a test example of <span>Slim</span></p>
</div>
但取而代之的是 span 标签未被识别并生成:
<div class="header">
<h2> slim head </h2>
<p>a test example of
span Slim </p>
<span>a new line with span</span>
<p>expected a test example of <span>Slim</span></p>
</div>
为什么跨度被视为文本而不是标签?
谢谢