小编Pic*_*r05的帖子

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

我正在 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 …
Run Code Online (Sandbox Code Playgroud)

html markdown pandoc

6
推荐指数
1
解决办法
457
查看次数

标签 统计

html ×1

markdown ×1

pandoc ×1