转换为PDF时,如何在Pandoc Markdown中继续列表缩进?

时间:2018-09-05 01:18:43

标签: markdown pandoc

我在使用Pandoc Markdown时遇到问题。我希望我的pdf文档如下所示(请注意添加图像后列表项的缩进如何继续)

  1. 指向a

    此处指向a点的图像。

    a点的延续。

  2. b点

    此处b点的图像。

    b点的延续

但是,无论我做什么,我都无法使压痕看起来正确。插入图像后,缩进会丢失(<4个空格),或者开始显示为代码块(> = 4个空格)。

要在其中插入图形时如何缩进列表项?

  

编辑#1

我正在使用的Markdown:

a. Point a starts here.\
[image for point a](image1.png)\
Point a continued.

b. Point b starts here.\
[image for point b](image2.png)\

    i. sub point 1 in point b.
    ii. sub point 2 in point b

continue point b here.

外观:

enter image description here

  

编辑#2

按照@ mb21的建议(精确复制格式+添加我的图像),我得到以下输出:

The continuation of points after images is not indented correctly.

未正确缩进图像后的连续点。

更新的降价促销:

## Problem 1 ##

a. Point a starts here.

   ![Frequency of fires in a given year](wildfires.png){height=50px}

   Point a continued.

b. Point b starts here.

   ![Frequency of fires in a given year](wildfires.png){height=50px}

   i. sub point 1 in point b.
   ii. sub point 2 in point b

   continue point b here.

1 个答案:

答案 0 :(得分:2)

您想要的正确缩进是:

## Problem 1

a. Point a starts here.

   ![image for point a](http://cdn.northlight-images.co.uk/downloadable_2/media_check.jpg){width=5cm}

   Point a continued.

b. Point b starts here.

   ![image for point b](http://cdn.northlight-images.co.uk/downloadable_2/media_check.jpg){width=5cm}

   i. sub point 1 in point b.
   ii. sub point 2 in point b

   continue point b here.

请参见http://pandoc.org/MANUAL.html#block-content-in-list-items

以上结果为:

enter image description here