问题描述
我正在用markdown编写一些东西,并使用pandoc将其转换为html,但是当我在yaml标头中添加title
变量时,它也会在文档顶部添加一个<h1>
,我不要在pandoc文档中,它说使用title-meta
变量,但仍然说
[WARNING] This document format requires a nonempty <title> element.
是否可以在不添加标题栏的情况下设置标题?
我正在使用的命令:
pandoc -s "file.md" -o "file.html"`
pandoc --version
的输出:
pandoc 2.10.1
Compiled with pandoc-types 1.21,texmath 0.12.0.2,skylighting 0.8.5
Default user data directory: C:\Users\noah\AppData\Roaming\pandoc
Copyright (C) 2006-2020 John MacFarlane
Web: https://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty,not even for merchantability or fitness
for a particular purpose.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)