mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fix:missing elements in markdown lists
Signed-off-by: Bruno Rigal <bruno.rigal@probayes.com>
This commit is contained in:
parent
6613b9e98b
commit
d1023b57e6
@ -247,7 +247,9 @@ class MarkdownDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
self._process_inline_text(parent_item, doc)
|
self._process_inline_text(parent_item, doc)
|
||||||
_log.debug(" - List item")
|
_log.debug(" - List item")
|
||||||
|
|
||||||
snippet_text = str(first_child.children[0].children) # type: ignore
|
snippet_text = (
|
||||||
|
marko.md_renderer.MarkdownRenderer().render(first_child).strip()
|
||||||
|
) # type: ignore
|
||||||
is_numbered = False
|
is_numbered = False
|
||||||
if (
|
if (
|
||||||
parent_item is not None
|
parent_item is not None
|
||||||
|
Loading…
Reference in New Issue
Block a user