mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
Remove comments
Signed-off-by: ka-weihe <k@weihe.dk>
This commit is contained in:
parent
61a5d95b20
commit
cb949f4ca2
@ -178,7 +178,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
||||
elif tag.name == "img":
|
||||
self.handle_image(tag, doc)
|
||||
elif tag.name == "a":
|
||||
# New branch to handle anchor tags.
|
||||
self.handle_anchor(tag, doc)
|
||||
else:
|
||||
self.walk(tag, doc)
|
||||
@ -554,6 +553,6 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
|
||||
parent=self.parents[self.level],
|
||||
label=DocItemLabel.TEXT,
|
||||
text=display_text,
|
||||
hyperlink=href if href else None, # Pass the hyperlink as a separate parameter
|
||||
hyperlink=href if href else None,
|
||||
content_layer=self.content_layer,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user