JP_ | 2015-04-25 01:51:53 UTC | #1
I can't get the raw text to display with > formatting, so [here][1] (might need to open in new window or refresh to see source)
- group A 1
- group A 2
- group A 3
- group A 4
- group A 5
When I try to have two lists separated by an empty line, it throws the whole thing out of whack:
- group A 1
- group A 2
- group B 1
- group B 2
- group B 3
So far, workaround I found is to put empty paragraph in there
- group A 1
- group A 2
- group B 1
- group B 2
- group B 3
[1]: https://meta.discourse.org/raw/27912
-------------------------
codinghorror | 2015-04-25 01:52:12 UTC | #2
You generally cannot mix loose and tight spacing of lists in Markdown. Either the list is tight (no spaces) or loose (always spaces). Mixing the two within the same list will result in strangeness.
You should try in Babelmark to see what I mean
http://johnmacfarlane.net/babelmark2/
Or for more
http://talk.commonmark.org/t/maintaining-sanity-in-lists-with-different-kinds-of-spacing/476/4?u=codinghorror
-------------------------
cpradio | 2015-04-25 10:52:43 UTC | #3
So it seems common mark is the only one that I feel gets this correct
```
* List 1, Item 1
* List 1, Item 2
* List 1, Item 3
- List 2, Item 1
- List 2, Item 2
- List 2, Item 3
```
Common Mark/Cheapskates output:
Output in Discourse
* List 1, Item 1
* List 1, Item 2
* List 1, Item 3
- List 2, Item 1
- List 2, Item 2
- List 2, Item 3
I haven't found a way to permit the following in any of the implementations yet:
```
* List 1, Item 1
* List 1, Item 2
* List 1, Item 3
* List 2, Item 1
* List 2, Item 2
* List 2, Item 3
```
-------------------------
Mittineague | 2015-04-25 13:27:55 UTC | #4
Hacky, but inserting an HTML br tag seems to work
```
* List 1, Item 1
* List 1, Item 2
* List 1, Item 3
- List 2, Item 1
- List 2, Item 2
- List 2, Item 3
```
* List 1, Item 1
* List 1, Item 2
* List 1, Item 3
- List 2, Item 1
- List 2, Item 2
- List 2, Item 3
-------------------------
elberet | 2015-04-25 13:57:02 UTC | #5
Except that you really only get a single ``:
-------------------------
Mittineague | 2015-04-25 17:07:44 UTC | #6
Thanks for catching that. I hadn't looked at source.
I hadn't had my coffee yet - that's my excuse and I'm sticking with it.
This works better, but is far from being a perfect work-around. i.e. horizontal rule
```
* item A1
* item A2
* item A3
-----
- item B1
- item B2
- item B3
```
* item A1
* item A2
* item A3
-----
- item B1
- item B2
- item B3
-------------------------
JP_ | 2015-04-26 20:24:42 UTC | #8
[quote="codinghorror, post:2, topic:27912"]
You should try in Babelmark to see what I mean
[/quote]
I'm not sure which one Discourse uses, but "pandoc" and a few others seem to get it right.
http://johnmacfarlane.net/babelmark2/?text=+-+waefwefawe%0A+-+rtehergsergser%0A%0A+-+fawefawegaew%0A+-+greagwergawe%0A+-+egawegaewgew
-------------------------
system | 2018-09-29 01:03:39 UTC | #9
-------------------------
sam | 2018-09-29 02:15:37 UTC | #10
This is totally resolved with markdown.it which we introduced a year or so ago
-------------------------
sam | 2018-09-29 02:15:40 UTC | #11
-------------------------