Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.56 kb
"""
magicmarkdown.py
utility script for changing markdown from magic methods guide into HTML
"""
import markdown
table = open('table.markdown').read()
body = open('magicmethods.markdown').read()
appendix = open('appendix.markdown').read()
table_text = markdown.markdown(table)
body_text = markdown.markdown(body,
['def_list', 'codehilite'])
appendix_text = markdown.markdown(appendix, ['tables'])
with open('magicmethods.html', 'w') as out:
out.write(table_text)
out.write(body_text)
out.write(appendix_text)
Jump to Line
Something went wrong with that request. Please try again.