GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — magicmethods/magicmarkdown.py at master · datahacking/magicmethods Expand file tree/ Copy pathmagicmarkdown.pyMore file actions executable file ·21 lines (16 loc) · 555 Bytes / Copy pathmagicmarkdown.pyFile metadata and controlsexecutable file ·21 lines (16 loc) · 555 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 """ 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.tmp', 'w') as out: out.write(table_text) out.write(body_text) out.write(appendix_text) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |