mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
feat(html): Support formatting tags in HTML texts (#2111)
* add parsing for formatting tags in HTML backend Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> fix latest tests + wiki_duck result files. Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> * convert _collect_parent_format_tags to staticmethod Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> --------- Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch>
This commit is contained in:
@@ -208,6 +208,6 @@ def test_html_furniture():
|
||||
included_content_layers={ContentLayer.BODY, ContentLayer.FURNITURE}
|
||||
)
|
||||
assert md_all == (
|
||||
"Initial content with some bold text\n\n# Main Heading\n\nSome Content\n\n"
|
||||
"Initial content with some **bold text**\n\n# Main Heading\n\nSome Content\n\n"
|
||||
"Some Footer Content"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user