We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<ol>
<ul>
If an <ol> or <ul> element follows another element on the same line, and there is a space before it:
from markdownify import markdownify as md html = """ <p>Follow these steps:</p> <ol> <li><p>Do this.</p></li> <li><p>Do that.</p></li> </ol>""" print(md(html))
then that space incorrectly indents the first list item:
Follow these steps: 1. Do this. 2. Do that.
As a workaround, we preprocess our Beautiful Soup object as follows:
for n in node_markdown.find_all(["ol", "ul"]): n.insert_before("\n")
The text was updated successfully, but these errors were encountered:
Should be fixed by my PR #120.
Sorry, something went wrong.
No branches or pull requests
If an
<ol>
or<ul>
element follows another element on the same line, and there is a space before it:then that space incorrectly indents the first list item:
As a workaround, we preprocess our Beautiful Soup object as follows:
The text was updated successfully, but these errors were encountered: