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

Method prettify

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

Source from the content-addressed store, hash-verified

490 self.pretty = markdown.treeprocessors.PrettifyTreeprocessor(md)
491
492 def prettify(self, xml):
493 root = etree.fromstring(xml)
494 self.pretty.run(root)
495 return etree.tostring(root, encoding="unicode", short_empty_elements=False)
496
497 def testPreCodeEmpty(self):
498 xml = "<pre><code></code></pre>"

Callers 5

testPreCodeEmptyMethod · 0.95
testPreCodeWithTextMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected