mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 12:48:28 +00:00
* add parsing for formatting tags in HTML backend Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> fix latest tests + wiki_duck result files. Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> * convert _collect_parent_format_tags to staticmethod Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch> --------- Signed-off-by: Roman Kayan BAZG <roman.kayan@bazg.admin.ch>
70 lines
3.2 KiB
Plaintext
Vendored
70 lines
3.2 KiB
Plaintext
Vendored
item-0 at level 0: unspecified: group _root_
|
|
item-1 at level 1: title: HTML Text Formatting Examples
|
|
item-2 at level 2: inline: group group
|
|
item-3 at level 3: text: This is a
|
|
item-4 at level 3: text: bold (b)
|
|
item-5 at level 3: text: example and right next to it we have a
|
|
item-6 at level 3: text: strong emphasis (strong)
|
|
item-7 at level 3: text: .
|
|
item-8 at level 2: text: Notice that
|
|
item-9 at level 2: inline: group group
|
|
item-10 at level 3: text: strong + bold mixed
|
|
item-11 at level 3: text: looks similar but carries additional semantic meaning.
|
|
item-12 at level 2: inline: group group
|
|
item-13 at level 3: text: Here is an
|
|
item-14 at level 3: text: italic (i)
|
|
item-15 at level 3: text: word and an
|
|
item-16 at level 3: text: emphasis (em)
|
|
item-17 at level 3: text: example.
|
|
item-18 at level 2: text: Sometimes we combine them like
|
|
item-19 at level 2: inline: group group
|
|
item-20 at level 3: text: italic + emphasis together
|
|
item-21 at level 3: text: .
|
|
item-22 at level 2: inline: group group
|
|
item-23 at level 3: text: Now let's look at text that appears crossed out:
|
|
item-24 at level 3: text: strikethrough with s
|
|
item-25 at level 3: text: and
|
|
item-26 at level 3: text: deleted with del
|
|
item-27 at level 3: text: .
|
|
item-28 at level 2: text: You can also mix them:
|
|
item-29 at level 2: inline: group group
|
|
item-30 at level 3: text: double strikethrough (s + del)
|
|
item-31 at level 3: text: .
|
|
item-32 at level 2: inline: group group
|
|
item-33 at level 3: text: To highlight insertions or underlines:
|
|
item-34 at level 3: text: underlined with u
|
|
item-35 at level 3: text: ,
|
|
item-36 at level 3: text: inserted with ins
|
|
item-37 at level 3: text: .
|
|
item-38 at level 2: text: A combination could be:
|
|
item-39 at level 2: inline: group group
|
|
item-40 at level 3: text: underline + insertion together
|
|
item-41 at level 3: text: .
|
|
item-42 at level 2: text: Subscript and superscript examples:
|
|
item-43 at level 2: text: Water is written as H
|
|
item-44 at level 2: inline: group group
|
|
item-45 at level 3: text: 2
|
|
item-46 at level 3: text: O using sub.
|
|
item-47 at level 2: text: The mathematical expression x
|
|
item-48 at level 2: inline: group group
|
|
item-49 at level 3: text: 2
|
|
item-50 at level 3: text: + y
|
|
item-51 at level 3: text: 3
|
|
item-52 at level 3: text: uses sup.
|
|
item-53 at level 2: text: They can also be combined: CO
|
|
item-54 at level 2: inline: group group
|
|
item-55 at level 3: text: 2
|
|
item-56 at level 3: text: *
|
|
item-57 at level 3: text: .
|
|
item-58 at level 2: inline: group group
|
|
item-59 at level 3: text: Mixing several: This sentence has
|
|
item-60 at level 3: text: strong + emphasis
|
|
item-61 at level 3: text: ,
|
|
item-62 at level 2: text: some
|
|
item-63 at level 2: inline: group group
|
|
item-64 at level 3: text: bold + underline
|
|
item-65 at level 3: text: , and a formula like a
|
|
item-66 at level 3: text: 2
|
|
item-67 at level 3: text: + b
|
|
item-68 at level 3: text: 3
|
|
item-69 at level 3: text: . |