-
Notifications
You must be signed in to change notification settings - Fork 527
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
Missing List Indent for nested list item #736
Comments
cyfung1031
changed the title
Is this a bug?
(Missing List Indent for sub-item) Is this a bug?
Jun 3, 2023
Expected:
Actual:
|
cyfung1031
changed the title
(Missing List Indent for sub-item) Is this a bug?
Missing List Indent for nested list item
Jun 3, 2023
Marked.js can produce the correct result. Guess this issue is similar to #711. |
This simple reproduction case demonstrates the issue clearly I think: require 'redcarpet'
markdown = Redcarpet::Markdown.new Redcarpet::Render::HTML
text = <<~MARKDOWN
- one
- two
- three
MARKDOWN
puts markdown.render text
# == Actual output
# <ul>
# <li>one
#
# <ul>
# <li>two</li>
# <li>three</li>
# </ul></li>
# </ul>
#
# == Expected output:
# <ul>
# <li>one<ul>
# <li>two<ul>
# <li>three</li>
# </ul>
# </li>
# </ul>
# </li>
# </ul> |
This was referenced Apr 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Greasy Fork uses redcarpet to render markdown but the tab indent is missing
Markdown Example:
Item 1
Item 2
a. Item a
b. Item b
The item a b shall be under item 2 with tab indent.
But Greasy Fork is just
It is possible due to redcarpet as explained by GreasyFork's administrator.
The text was updated successfully, but these errors were encountered: