Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.11
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (16 sloc) 0.456 kb
# magicmarkdown.py
# utility script for changing markdown from magic methods guide into HTML
import markdown
mkd = open('magicmethods.mkd', 'r')
text = mkd.read()
mkd.close()
mkd2 = open('appendix.mkd', 'r')
text2 = mkd2.read()
mkd2.close()
html = markdown.markdown(text,
['def_list', 'codehilite'])
appendix = markdown.markdown(text2, ['tables'])
out = open('markedup.html', 'w')
out.write(html)
out.write(appendix)
out.close()
Jump to Line
Something went wrong with that request. Please try again.