Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (16 sloc) 0.555 kb
966bb823 »
2011-07-04 It's a Makefile. I use Makefiles now. Makefiles are cool
1 """
04a06927 »
2012-04-08 Remove documentation of bogus method __concat__, fixes #18
2 magicmarkdown.py
966bb823 »
2011-07-04 It's a Makefile. I use Makefiles now. Makefiles are cool
3 utility script for changing markdown from magic methods guide into HTML
4 """
5045a00e »
2011-01-29 magicmarkdown.py script for conversions, fully markdownified magicmet…
5
6 import markdown
7
966bb823 »
2011-07-04 It's a Makefile. I use Makefiles now. Makefiles are cool
8 table = open('table.markdown').read()
9 body = open('magicmethods.markdown').read()
10 appendix = open('appendix.markdown').read()
c4394796 »
2011-02-01 Factored table of contents out to table.mkd, proper extension for REA…
11
12 table_text = markdown.markdown(table)
f51a9f7a » Bertrand TORNIL
2012-05-24 super call needs to inherit from object in AccessCounter
13 body_text = markdown.markdown(body,
5aeb5ede »
2011-01-29 Added syntax highlighting. Fixed HTML entities
14 ['def_list', 'codehilite'])
c4394796 »
2011-02-01 Factored table of contents out to table.mkd, proper extension for REA…
15 appendix_text = markdown.markdown(appendix, ['tables'])
16
f51a9f7a » Bertrand TORNIL
2012-05-24 super call needs to inherit from object in AccessCounter
17 with open('magicmethods.html.tmp', 'w') as out:
39c01e73 »
2011-02-04 Cosmetic change to magicmarkdown.py
18 out.write(table_text)
19 out.write(body_text)
f51a9f7a » Bertrand TORNIL
2012-05-24 super call needs to inherit from object in AccessCounter
20 out.write(appendix_text)
21
Something went wrong with that request. Please try again.