我需要定期为使用Word的管理员创建文档。如何使用Pandoc Markdown居中图像?我看到提到了div块,但我不知道它们是什么。
![](myimage.png){.center}
[使用上面的图像代码和命令行,例如:
pandoc -s test.md -o test.docx
或
pandoc -s test.md -o test.pdf
我总是以文档中的左对齐图像结尾。
对于PDF输出,使用implicit_figure选项将使图像自动在页面上居中,并允许您显示图像标题。