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

Sublists are not rendered as expected #452

Open
LLCampos opened this issue Oct 17, 2020 · 1 comment
Open

Sublists are not rendered as expected #452

LLCampos opened this issue Oct 17, 2020 · 1 comment

Comments

@LLCampos
Copy link

When I pass the following Markdown through Paradox:

- item 1
- item 2
  - sub-item 2.1
  - sub-item 2.2
- item 3

I get this:

image

I would expect something like this:

image

@pvlugter
Copy link
Member

The markdown parser that paradox uses (pegdown) parses lists with a fixed indent size — either 4 spaces or a tab. So the following will work:

- item 1
- item 2
    - sub-item 2.1
    - sub-item 2.2
- item 3

See also sirthias/pegdown#245. So this is as expected for pegdown and paradox. There was a plan to move to a new parser instead (flexmark-java, #81).

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

2 participants