Gitlab Flavored Markdown Annoying Formatting Error in Wiki
Created by: demisx
If I use tripple backticks for formatting code as part of the ordered list, the code snippet is not formatted properly if it is in the last bullet and this is the only code snippet in the list (it just gets inserted highlighted inline):
- Bullet 1
- Bullet 2
- Bullet 3
bash $ cd /tmp $ git clone some_repo
I always need to follow it with a 4th bullet without the snippet to make it show up correctly, e.g.:
-
Bullet 1
-
Bullet 2
-
Bullet 3
$ cd /tmp $ git clone some_repo
-
Bullet 4
Very annoying and hard to remember when writing wiki pages and sometimes there is really no need to have this bullet 4. How can I make the last bullet in a list to properly show the indented code snippet?