Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (16 sloc) 555 Bytes
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.tmp', 'w') as out:
Something went wrong with that request. Please try again.