doesn't support Markdown nested lists #5

Open
opened 2017-10-18 00:08:00 -07:00 by wohlben · 3 comments
wohlben commented 2017-10-18 00:08:00 -07:00 (Migrated from github.com)

the nested list syntax doesnt render as expected

  1. this should be a list
  • this should be another list
    • this should be a sublist
      1. another one with numbers

It just renders as a flat list in Writing. always creating a new list on every unordered / ordered switch.

the nested list syntax doesnt render as expected 1. this should be a list * this should be another list - this should be a sublist 1. another one with numbers It just renders as a flat list in Writing. always creating a new list on every unordered / ordered switch.
josephernest commented 2017-10-18 01:54:36 -07:00 (Migrated from github.com)

A solution would be to add a few CSS lines here for nested lists with ul li etc.

If you have an idea, could you post the relevant CSS additions? Thanks!

A solution would be to add a few CSS lines [here](https://github.com/josephernest/writing/blob/master/index.html#L38) for nested lists with `ul` `li` etc. If you have an idea, could you post the relevant CSS additions? Thanks!
DavideRoss commented 2017-10-18 06:17:38 -07:00 (Migrated from github.com)

Have you tried to indent with four spaces each line?

# Nested lists

* Level 1
    * Level 2
        * Level 3

It renders as intended. A fancy addition could be handling the TAB key to add four spaces (currently not working on MacOS 10.12.6).

EDIT: I just discovered that indent is inconsistent: you just need a space before second line to have a second level list, but you have to insert four if you want a third level.

Have you tried to indent with four spaces each line? ```markdown # Nested lists * Level 1 * Level 2 * Level 3 ``` It renders as intended. A fancy addition could be handling the TAB key to add four spaces (currently not working on MacOS 10.12.6). EDIT: I just discovered that indent is inconsistent: you just need a space before second line to have a second level list, but you have to insert four if you want a third level.
wohlben commented 2017-10-18 06:56:16 -07:00 (Migrated from github.com)

you're right, my initial report was incorrect. sorry for that! (it also works with the expected two spaces)

the nesting only breaks if there are mixed ul/ol lists, and it doesnt detect a nl as a new list. this causes the root ul to fall into the nesting as well

this breaks:

1. test
1. test

* test
    *  test
you're right, my initial report was incorrect. sorry for that! (it also works with the expected two spaces) the nesting only breaks if there are mixed ul/ol lists, and it doesnt detect a nl as a new list. this causes the root ul to fall into the nesting as well this breaks: ```md 1. test 1. test * test * test ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
brad/writing#5
No description provided.