-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Nested list do not work? #2125
Comments
The same way you do it in markdown, indent with a tab or 4 spaces per level. - list 1
- list 2
- list 2.1
- list 2.1.1
- list 2.2
- list 2.3
- list 3 |
I had to add a blank line between the last line of text and the first line of the list to make it work. |
GitHub-flavored markdown accepts 2 levels of indentation (which I prefer), so this: - test
- nested turn into this:
Is it possible to force this behavior in pelican? |
Pelican relies on the Python-Markdown library for Markdown rendering, so this is actually outside the scope of what Pelican can control.
|
Actually, to make markdown easier to use, pelican could just configure python-markdown to accept 2 spaces as indentation (this will apply to all indentation, including code; there's also an extension to fix just list's indentation). |
To be clear, how markup is rendered is still not directly in Pelican's bailiwick. You are correct that there are ways to control how Python-Markdown behaves, but instead of doing that for all users in Pelican core, that should be configured by individual end users via the |
Ok, thanks. :) |
I tried different ways to write nested lists in my markdown files, but I always get in the output HTML file normal lists instead.
How to write nested lists in Pelican?
The text was updated successfully, but these errors were encountered: