【问题标题】:How to put images with captions inside bulleted lists in pandoc如何将带有标题的图像放在pandoc的项目符号列表中
【发布时间】:2018-04-06 21:09:58
【问题描述】:

我正在尝试使用项目符号列表中的图像编写 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 文件。

【问题讨论】:

    标签: image markdown pandoc caption


    【解决方案1】:

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

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

    【讨论】:

    • @monteiro 如果答案解决了您的问题,您可以“接受”它。
    猜你喜欢
    • 1970-01-01
    • 2022-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多