MCPcopy Index your code
hub / github.com/unclecode/crawl4ai / google_text_emphasis

Function google_text_emphasis

crawl4ai/html2text/utils.py:112–127  ·  view source on GitHub ↗

:type style: dict :returns: A list of all emphasis modifiers of the element :rtype: list

(style: Dict[str, str])

Source from the content-addressed store, hash-verified

110
111
112def google_text_emphasis(style: Dict[str, str]) -> List[str]:
113 """
114 :type style: dict
115
116 :returns: A list of all emphasis modifiers of the element
117 :rtype: list
118 """
119 emphasis = []
120 if "text-decoration" in style:
121 emphasis.append(style["text-decoration"])
122 if "font-style" in style:
123 emphasis.append(style["font-style"])
124 if "font-weight" in style:
125 emphasis.append(style["font-weight"])
126
127 return emphasis
128
129
130def google_fixed_width_font(style: Dict[str, str]) -> bool:

Callers 1

handle_emphasisMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…