在jekyll中,如何将变量解析为标记,而不是按原样打印?
给定以下文件:在jekyll中,如何将变量解析为标记,而不是按原样打印?,jekyll,Jekyll,给定以下文件: _data slides.yml 其中包括 - title: Slide one desc: | welcome to the slideshow This is an open-source slideshow, built with [deck.js](https://github.com/imakewebthings/deck.js), GitHub and [Jekyll](http://jekyllrb.com). - title: Slid
_data
slides.yml
其中包括
- title: Slide one
desc: |
welcome to the slideshow
This is an open-source slideshow, built with [deck.js](https://github.com/imakewebthings/deck.js), GitHub and [Jekyll](http://jekyllrb.com).
- title: Slide two
desc: |
Second slide with bullet points
* Hello world
* This is a slideshow
在我的index.html中
{% for slide in site.data.slides %}
<section class="slide">
<h2>{{ slide.title }}</h2>
{{ slide.desc }}
</section>
{% endfor %}
谢谢
阿尔伯特找到了答案
...
{{ slide.desc | markdownify }}
...
.太棒了。刚看到这篇文章,这将是方便知道!
...
{{ slide.desc | markdownify }}
...