如何将带标题的图像放入 pandoc 的项目符号列表中

fmv*_*992 2 markdown image caption pandoc

我正在尝试编写一个 pandoc markdown 文本,其中包含项目符号列表中的图像,该列表还显示标题。那是:

* Item 1.
* Item 2.
![This is my caption](image.png "I tried using this as caption too")
Item 2 text is supposed to continue here (thus same indenting).
* Item 3.
Run Code Online (Sandbox Code Playgroud)

但字幕不显示。

如果我将一个图形放在自己的段落中,标签会显示,但缩进/延续会混乱。

* Item 1.
* Item 2.

![This is my caption](image.png "I tried using this as caption too")

Item 2 text does not continue with the same indenting/continuation : (
* Item 3.
Run Code Online (Sandbox Code Playgroud)

我的最终转换是一个 HTML 文件。

Way*_*lan 5

段落(和其他块级元素)嵌套在带有缩进的列表项中。您需要将元素缩进一级并用空行换行:

* Item 1.
* Item 2.

    ![This is a caption](image.png "This is a title")

    Item 2 text must continue with the same indenting.

* Item 3.
Run Code Online (Sandbox Code Playgroud)