我使用pandoc生成带有YAML元数据的index.html。我知道如何从pandoc模板中迭代关联数组:
YAML:
- Author: Mastropiero
- Author: Gunter Fraggen
模板:
$for(author)$
$author$
$endfor$
但是...如何在没有键的情况下迭代列表?
YAML:
- Author:
- [Value1, Value2]
- [Value1B, Value2B]
模板:
$for(author)$
... // how works?
$endfor$
$sep$
的示例? - cboettig$sep$separator
。例如,separator
可以是\\\
。 - bytesinflight