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

How to put images with captions inside bulleted lists in 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.

但是标题没有显示。

如果我将图表放在其自己的段落中,标签会显示但 indenting/continuation 搞砸了。

* 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.

我的最终转换是 HTML 文件。

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

* 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.