fix(export): handle metadata-only notes and HTML image resources

This commit is contained in:
2026-09-07 14:45:47 +08:00
parent 894f220239
commit ca5b52bc8a
6 changed files with 60 additions and 2 deletions
+2
View File
@@ -178,6 +178,8 @@ class _AstMapper:
type="link", node_id=self.next_id(), attributes=attributes,
children=self.map_inline(token.get("children", [])),
)
if kind == "inline_html":
return DocumentNode(type="text", node_id=self.next_id(), text=token.get("raw", ""), attributes={"raw_html": True})
if kind == "codespan":
return DocumentNode(type="codespan", node_id=self.next_id(), text=token.get("raw", ""))
if kind == "image":