Markdown -> HTML issues (list levels and theming)
-
Stefan Doehla
Hm, I played around with sundown a bit further and noted that it seems to work if one has at least five spaces for level 3 and nine for level four (!?)
Is that you who I'd need to talk to to fix this - or is this Markdown-inherent - or is somewhen else who could address it?
Example:
* Level 1 needs no leading spaces * Level 2 needs one leading space * Level 3 needs five leading spaces * Level 4 needs nine leading spaces * Level 1 again- Level 1 needs no leading spaces
- Level 2 needs one leading space
- Level 3 needs five leading spaces
- Level 4 needs nine leading spaces
- Level 3 needs five leading spaces
- Level 2 needs one leading space
- Level 1 again
And now with fewer spaces
* Level 1 needs no leading spaces * Level 2 needs one leading space * Level 3 now with four spaces only * Level 4 is at level three now (maybe because of the previous level not being indented) * Level 1 again- Level 1 needs no leading spaces
- Level 2 needs one leading space
- Level 3 now with four spaces only
- Level 4 is at level three now (maybe because of the previous level not being indented)
- Level 1 again
- Level 1 needs no leading spaces
-
benny
- State changed from new to closed
I'm actually not sure what's going on here, but it'll be a waste of time to look into
sundown. I have on my list to switch to CommonMark (while possibly also opening up to using alternatives). I'll close the ticket, but if it's still an issue when I've made the switch then we can re-open it. -
Anthony Craig
Have you implemented CommonMark yet? (Will CommonMark ever be finished? haha)
-
benny
@Anthony: CommonMark is not a feature yet, but it's still my plan to make it the default tool to convert from plain text to Markdown.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.