ruby - 如何让 jekyll 正常处理 markdown 文档中贴的XML代码段?
PHP中文网
PHP中文网 2017-04-24 09:10:42
0
1
697

在 markdown 文档中贴了段XML代码,格式如下:

" xml
<xxxxx></xxxxx>
"

结果 jekyll 在转换成 HTML 时,把XML代码段直接插入到HTML里了。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
小葫芦

Writing like that means markdown just wraps the code in code pre
How about trying to write like this

{% highlight xml %}
 <xml>。。。。。</xml>
{% endhighlight %}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!