MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / _write_html

Function _write_html

markdown/serializers.py:175–180  ·  view source on GitHub ↗
(root: Element, format: Literal["html", "xhtml"] = "html")

Source from the content-addressed store, hash-verified

173
174
175def _write_html(root: Element, format: Literal["html", "xhtml"] = "html") -> str:
176 assert root is not None
177 data: list[str] = []
178 write = data.append
179 _serialize_html(write, root, format)
180 return "".join(data)
181
182
183# --------------------------------------------------------------------

Callers 2

to_html_stringFunction · 0.85
to_xhtml_stringFunction · 0.85

Calls 1

_serialize_htmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…