# Les listes imbriquées Markdown ont un espacement vertical différent selon la profondeur des puces

**URL:** https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166
**Category:** Support
**Created:** [Janvier 10, 2019, 8:34 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166 "2019-01-10T08:34:38Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [Janvier 10, 2019, 8:34 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/1 "2019-01-10T08:34:38Z")

</div>

For some lists (blue arrows) there is no vertical space between list indent lvl 1 and indent lvl 2, while for other lists, which are constructed the same (from what i could see at least) there is a `~0.7` of a row of vertical space.

I have tried to have the same indentation for the whole document:

```plaintext
- indent lvl 1, "-" is at column 1
  - indent lvl 2, "-" is at column 3 (there are 2 spaces before the "-")
    - indent lvl 3, "-" is at column 5 (there are 2*2 spaces before the "-")

```

Link with the problem: [Scripts and utilities index - How-to - Duplicacy Forum](https://forum.duplicacy.com/t/scripts-and-utilities-index/1104)

Image:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/2/82bc2a0c2063c97d6c77c955d240df71c39fada4.png)

> **And here's the copy-pasted markdown from that post**
>
> ```plaintext
> Since there are multiple use cases for Duplicacy on multiple operating systems, some users have also created various automation scripts and other utilities such as ignore file templates (`filters` file). Here is a list of them:
> 
> <!--- Possible enhancement: to have a better organisation, if there are multiple repositories from the same user, we could group the links here by user first. Need other opinions on this. @christoph says: I don't see any point in grouping by user --->
> 
> # Windows only
> 
> - [duplicacy-script](https://github.com/mattjm/duplicacy-script) contributed by [@mattjm](https://github.com/mattjm)
> - Getting Started guide for Windows with brief explanations of command line options, basic Powershell script for local and remote backups, and a filter file specifically targeted for Windows user profiles.
> 
> # Linux only
> 
> - [duplicacy-scripts](https://github.com/markfeit/duplicacy-scripts) (Note the plural) contributed by @mfeit_duplicacy
> - Runs Duplicacy on a schedule, maintains the backups (pruning, etc.) and has a self-contained restore utility.
> 
> - FreeNAS backup script utilising ZFS snapshots: [duplicacy-backup.sh](https://gist.github.com/cnrd/40b7c6d79d5d645b21eb2da561c17b91)
> - Running the script is as easy as `./duplicacy-backup.sh /mnt/tank/`
> - Mentioned in Issue [#370](https://github.com/gilbertchen/duplicacy/issues/370)
> 
> # Cross-platform
> 
> - [Duplicacy Utils](https://github.com/TheBestPessimist/duplicacy-utils) contributed by @TheBestPessimist
> - Uses Powershell
> - Schedule
> - - on Windows using [Task Scheduler](https://github.com/TheBestPessimist/duplicacy-utils/blob/master/create%20scheduled%20task.ps1)
> - - on Linux using [systemd](https://github.com/TheBestPessimist/duplicacy-utils/blob/master/create_linux_systemd_scheduled_task.ps1)
> - Sends notifications via [Telegram](https://github.com/TheBestPessimist/duplicacy-utils-telegram-bot)
> - very simple config: just replace whatever you need from the default configuration file (has sensible default options)
> - backup, copy, prune
> 
> - [`filters` file template](https://github.com/TheBestPessimist/duplicacy-utils) contributed by @TheBestPessimist.
> - One ignore file both for Windows and MacOS
> 
> - [duplicacy-util](https://github.com/jeffaco/duplicacy-util) contributed by @jeffaco.
> - Cross platform utility to run `duplicacy`. Tested on Windows, Mac OS/X, and Linux. Should run on any platform supported by `duplicacy` itself, as both were written in Go. Self-contained image (does not need any packages to be installed).
> 
> - https://forum.duplicacy.com/t/send-backup-notifications-via-telegram-using-duplicacy-utils-telegram-bot/1692
> 
> # Cross-platform (via Docker)
> 
> - [duplicacy-autobackup](https://github.com/christophetd/duplicacy-autobackup) contributed by [@christophetd](https://github.com/christophetd)
> - Painless automated backups to multiple storage providers with Docker and duplicacy
> 
> ```

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Janvier 10, 2019, 8:36 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/2 "2019-01-10T08:36:15Z")

</div>

Probably loose vs. tight lists.

- tight
- list

vs

- loose

- list

You have to be consistent, either all tight or all loose. You can’t mix.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [Janvier 10, 2019, 8:38 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/3 "2019-01-10T08:38:13Z")

</div>

Nope, totally the same spacing between the lines.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [Janvier 10, 2019, 8:51 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/7 "2019-01-10T08:51:10Z")

</div>

- list 0 indent 1

- list 1 indent 1

- list 2 indent 1

- list 3 indent 1

- list 4 indent 1

```plaintext
- list 0 indent 1
- list 1 indent 1

- list 2 indent 1
  - list 2 indent 2

- list 3 indent 1
  - list 3 indent 2 
  - list 3 indent 2

- list 4 indent 1
  - list 4 indent 2
  - list 4 indent 2
  - list 4 indent 2

```

This doesnt show it. All vertical space looks the same.

* * *

Let’s try with links:

# Windows only

- [duplicacy-script](https://github.com/mattjm/duplicacy-script) contributed by [@mattjm](https://github.com/mattjm)
  - Getting Started guide for Windows with brief explanations of command line options, basic Powershell script for local and remote backups, and a filter file specifically targeted for Windows user profiles.

# Linux only

- [duplicacy-scripts](https://github.com/markfeit/duplicacy-scripts) (Note the plural) contributed by @mfeit\_duplicacy

- bla \< HERE: if you delete this line, the text “Runs Duplicacy …” sticks to “duplicacy-utils”!!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Janvier 10, 2019, 8:59 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/8 "2019-01-10T08:59:08Z")

</div>

Simpler to repro if you keep it very simple

### heading

- list
  - list

### heading

- list
  - list

- list
  - list

not really seeing it. You think links are the issue? You need to break this down to the absolute minimum.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [Janvier 10, 2019, 9:00 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/9 "2019-01-10T09:00:22Z")

</div>

Repro in a smaller comment just above yours: [Markdown nested lists have different vertical padding for different bullet depths - #7 by TheBestPessimist](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/7) (in #7)

Just edit my post, the last line and check the preview

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Janvier 10, 2019, 9:05 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/10 "2019-01-10T09:05:25Z")

</div>

😠 That’s _exactly what I said it would be_. You convert it to a loose list when you add spacing like that.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [Janvier 10, 2019, 9:05 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/11 "2019-01-10T09:05:57Z")

</div>

I still don’t understand ☹

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Janvier 10, 2019, 9:06 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/12 "2019-01-10T09:06:53Z")

</div>

- tight
- tight

vs

- loose

- loose

You cannot have lines between the bullets, if you do, it converts everything to a loose list. Perhaps the nested nature of the lists is obscuring the issue for you, _but the rule is the same no matter how nested the lists are_.

Either a list is loose, or it is tight. There is no in-between state.

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [Janvier 10, 2019, 9:09 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/13 "2019-01-10T09:09:22Z")

</div>

- tight
  - tight nested

- tight
  - nested
  - nested

- tight
  - nested
  - nested
  - nested

vs

- tight

- tight

- tight

```plaintext
- tight
  - tight nested
- tight
  - nested
  - nested
- tight
  - nested
  - nested
  - nested

vs

- tight
  - tight nested

- tight
  - nested
  - nested

- tight
  - nested
  - nested
  - nested

```

* * *

Ok. I see now where the problem was. The loose ones are applied even though i have nested inbetween, right?

Sorry for the brain fart!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Janvier 23, 2019, 10:12 UTC](https://meta.discourse.org/t/markdown-nested-lists-have-different-vertical-padding-for-different-bullet-depths/106166/14 "2019-01-23T22:12:19Z")

</div>


