将图像标题与 asciidoc 中的图像对齐

pap*_*p42 5 asciidoc

我插入了一个块图像,如下所示:

[[myimage]]
image::fig1.png[align="center", title="My caption"]
Run Code Online (Sandbox Code Playgroud)

不幸的是,图像居中,但标题左对齐。我也尝试这样做:

[[myimage]]
.My caption
image::fig1.png[align="center"]
Run Code Online (Sandbox Code Playgroud)

但结果没有改变。如何使图像标题也居中对齐?

我使用此命令生成 HTML 输出(使用 xhtml11 作为后端没有区别):

asciidoc -v -a asciimath -d 文章 -b html5 -o file.html file.txt

Man*_*ser 1

更改 CSS 样式表来为您进行对齐。