Markdown nested lists have different vertical padding for different bullet depths

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:

- 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

Image:

And here's the copy-pasted markdown from that post
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

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.

1 Like

Nope, totally the same spacing between the lines.

  • 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
- 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 contributed by @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 (Note the plural) contributed by @mfeit_duplicacy

    • Runs Duplicacy on a schedule, maintains the backups (pruning, etc.) and has a self-contained restore utility.
    • new line
  • bla < HERE: if you delete this line, the text “Runs Duplicacy …” sticks to “duplicacy-utils”!!

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.

1 Like

Repro in a smaller comment just above yours: Markdown nested lists have different vertical padding for different bullet depths (in #7)

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

:angry: That’s exactly what I said it would be. You convert it to a loose list when you add spacing like that.

I still don’t understand :frowning:

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

2 Likes
  • tight
    • tight nested
  • tight
    • nested
    • nested
  • tight
    • nested
    • nested
    • nested

vs

  • tight

    • tight nested
  • tight

    • nested
    • nested
  • tight

    • nested
    • nested
    • nested
- 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!

3 Likes