Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't support Markdown nested lists #5

Open
wohlben opened this issue Oct 18, 2017 · 3 comments
Open

doesn't support Markdown nested lists #5

wohlben opened this issue Oct 18, 2017 · 3 comments

Comments

@wohlben
Copy link

wohlben commented Oct 18, 2017

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
Copy link
Owner

josephernest commented Oct 18, 2017

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!

@DavideRoss
Copy link

DavideRoss commented Oct 18, 2017

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.

@wohlben
Copy link
Author

wohlben commented Oct 18, 2017

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

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

No branches or pull requests

3 participants