mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-09 13:18:24 +00:00
feat(html): Support in-line anchor tags in HTML texts (#1659)
* re-implement links for html backend. Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> * fix inline groups in list items. write specific test for find_parent_annotation of _extract_text_and_hyperlink_recursively. Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> * implement hack for images. 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:
17
tests/data/html/hyperlink_01.html
vendored
Normal file
17
tests/data/html/hyperlink_01.html
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<html>
|
||||
|
||||
<body>
|
||||
<h1>Something</h1>
|
||||
<p>
|
||||
Please follow the link to:
|
||||
<a href="#">
|
||||
<span class="icon icon--right"></span> This page
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
<div class="mod mod-contentpage">
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user