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

问题描述 投票:2回答:1

我正面临使用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.
markdown pandoc
1个回答
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

© www.soinside.com 2019 - 2024. All rights reserved.