|医学博士

| md filter 将值从 Markdown 格式转换为 HTML 格式。

{{ '**Text** is bold.' | md }}

以上将输出以下内容:

<p><strong>Text</strong> is bold.</p>

| md_line

| md_line filter 将值从 Markdown 转换为 HTML 格式,作为内联元素。

{{ '**Text** is bold.' | md_line }}

以上将输出以下内容:

<strong>Text</strong> is bold.

| md_safe

| md_safe filter 将值从 Markdown 转换为 HTML 格式,防止<code> 缩进引起的块。

{{ '    **Text** is bold.' | md_safe }}

以上将输出以下内容:

<p><strong>Text</strong> is bold.</p>

代替

<pre><code><strong>Text</strong> is bold.</p></code></pre>
豫ICP备18041297号-2