gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 03:45:28 25 4
gpt4 key购买 nike

我正在尝试编写一个 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.

但是标题没有显示。

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

* 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 文件。

最佳答案

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

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

关于image - 如何将带标题的图像放入 pandoc 的项目符号列表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46938155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com