给定以下文件:
_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 %}如何让Jekyll将{{ slide.desc }}解释为markdown?是否存在这样的东西:
...
{{ slide.desc AS markdown }}
...谢谢!
阿尔伯特
发布于 2014-11-02 11:33:10
找到答案了!
...
{{ slide.desc | markdownify }}
...Here is the reference。
https://stackoverflow.com/questions/26695741
复制相似问题