MCPcopy Create free account
hub / github.com/commonmark/cmark / md2html

Function md2html

wrappers/wrapper.py:36–41  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

34opts = 0 # defaults
35
36def md2html(text):
37 text = text.encode('utf-8')
38 cstring = markdown(text, len(text), opts)
39 result = string_at(cstring).decode('utf-8')
40 free_func(cstring)
41 return result
42
43sys.stdout.write(md2html(sys.stdin.read()))

Callers 1

wrapper.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected