如何在不添加 <h1> 的情况下添加标头元数据?

Pic*_*r05 6 html markdown pandoc

我正在 markdown 中编写一些内容,并使用 pandoc 将其转换为 html,但是当我在 yaml 标头中添加变量时,它还会在文档顶部title添加一个,这是我不想要的。<h1>在 pandoc 文档中,它说使用title-meta变量,但它仍然说

[WARNING] This document format requires a nonempty <title> element.
Run Code Online (Sandbox Code Playgroud)

有没有办法在不添加标题栏的情况下设置标题?

我正在使用的命令:

pandoc -s "file.md" -o "file.html"`
Run Code Online (Sandbox Code Playgroud)

输出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.
Run Code Online (Sandbox Code Playgroud)

tar*_*leb 6

可以通过将模板变量设置为空字符串来设置显式标题,同时防止和元素--metadata=title="My title"的输出:<h1><header>title

pandoc --metadata=title="Fancy title" --variable=title="" ... 
Run Code Online (Sandbox Code Playgroud)