Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

Mixing list types is broken #22

Open
bvbore opened this issue Aug 19, 2015 · 2 comments
Open

Mixing list types is broken #22

bvbore opened this issue Aug 19, 2015 · 2 comments
Labels

Comments

@bvbore
Copy link

bvbore commented Aug 19, 2015

* list
* item

or

1. list
1. item

work individually, but when both are included one after another the list type of the first wins. Breaking the two lists with text in the middle seems to work fine.

Broken:

* list
* item

1. numbered
1. list

Working:

* list
* item

Paragraph

1. numbered
1. list
@BenDoan BenDoan added the bug label Aug 19, 2015
@BenDoan
Copy link
Owner

BenDoan commented Aug 19, 2015

It appears that this is standard markdown behavior. If you put those snippets into the original web tester, you get the same results. Other sites (like this one using marked) seems to render it in the more intuitive way. I'm guessing the markdown library I'm using (github.com/russross/blackfriday) is just trying to be true to the original.

A solution might be to move markdown rendering to the client with a library like marked. Go doesn't seem to have any markdown libraries that aren't direct ports from the original c.

@BenDoan
Copy link
Owner

BenDoan commented Aug 19, 2015

Here's a mailing list thread talking about this problem. An empty code block seems to be the best proposed solution (other than fixing the implementation):

* list
* hello
* world

` ` 

1. ordered
1. list

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants