fix:missing elements in markdown lists

Signed-off-by: Bruno Rigal <bruno.rigal@probayes.com>
This commit is contained in:
Bruno Rigal 2025-06-23 14:31:48 +00:00
parent 6613b9e98b
commit d1023b57e6

View File

@ -247,7 +247,9 @@ class MarkdownDocumentBackend(DeclarativeDocumentBackend):
self._process_inline_text(parent_item, doc)
_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
if (
parent_item is not None