You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h3 results in badly formatted output when combined with details/summary tags
This code
from bs4 import BeautifulSoup
from markdownify import MarkdownConverter
sample = """
<details><summary>Some question text</summary><div><h3>Answer</h3> Answer text</div></details>
"""
soup = BeautifulSoup(sample, 'html.parser')
result = MarkdownConverter().convert_soup(soup)
print(result)
Actual result (on 0.12.1):
Some question text### Answer
Answer text
Expected result:
Some question text
### Answer
Answer text
The text was updated successfully, but these errors were encountered:
alexei-osipov
changed the title
Headers are not handled well when concounter details/summary tags
Headers are not handled well when encounter details/summary tags
May 24, 2024
alexei-osipov
changed the title
Headers are not handled well when encounter details/summary tags
Headers are not handled well when combined with details/summary tags
May 24, 2024
h3
results in badly formatted output when combined withdetails
/summary
tagsThis code
Actual result (on
0.12.1
):Expected result:
The text was updated successfully, but these errors were encountered: