MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / prettify

Method prettify

tests/test_apis.py:468–471  ·  view source on GitHub ↗
(self, xml)

Source from the content-addressed store, hash-verified

466 self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(md)
467
468 def prettify(self, xml):
469 root = etree.fromstring(xml)
470 self.pretty.run(root)
471 return etree.tostring(root, encoding="unicode", short_empty_elements=False)
472
473 def testPreCodeEmpty(self):
474 xml = "<pre><code></code></pre>"

Callers 5

testPreCodeEmptyMethod · 0.95
testPreCodeWithTextMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected