pandoc 如何创建 html 段

How can pandoc create an html segment

有没有办法让 pandoc 生成一个 html 段,比如将其格式化为一组标签,而不是一个完整的 html 页面?正如在 pandoc 中一样,不会包含 <body> 标签,只包含 <body> 标签中的内容。

是的,如果您只使用不带任何选项的 pandoc 命令,这就是默认行为。