Commit 325f383a0a00457aee3d568bb78c2efd9a00e5b2
1 parent
c6da5826
Exists in
master
and in
1 other branch
minor change
Showing
1 changed file
with
0 additions
and
26 deletions
Show diff stats
tools.py
| ... | ... | @@ -83,29 +83,3 @@ def run_script(script, stdin='', timeout=5): |
| 83 | 83 | # --------------------------------------------------------------------------- |
| 84 | 84 | def md_to_html(text, q=None): |
| 85 | 85 | return markdown(text) |
| 86 | - | |
| 87 | -# def md_to_html(text, ref=None, files={}): | |
| 88 | -# if ref is not None: | |
| 89 | -# # given q['ref'] and q['files'] replaces references to files by a | |
| 90 | -# # GET to /file?ref=???;name=??? | |
| 91 | -# for k in files: | |
| 92 | -# text = text.replace(k, '/file?ref={};name={}'.format(ref, k)) | |
| 93 | -# return markdown.markdown(text, extensions=[ | |
| 94 | -# 'markdown.extensions.tables', | |
| 95 | -# 'markdown.extensions.fenced_code', | |
| 96 | -# 'markdown.extensions.codehilite', | |
| 97 | -# 'markdown.extensions.def_list', | |
| 98 | -# 'markdown.extensions.sane_lists' | |
| 99 | -# ]) | |
| 100 | - | |
| 101 | -# --------------------------------------------------------------------------- | |
| 102 | -# def md_to_html_review(text, q): | |
| 103 | -# for k,f in q['files'].items(): | |
| 104 | -# text = text.replace(k, '/absfile?name={}'.format(q['files'][k])) | |
| 105 | -# return markdown.markdown(text, extensions=[ | |
| 106 | -# 'markdown.extensions.tables', | |
| 107 | -# 'markdown.extensions.fenced_code', | |
| 108 | -# 'markdown.extensions.codehilite', | |
| 109 | -# 'markdown.extensions.def_list', | |
| 110 | -# 'markdown.extensions.sane_lists' | |
| 111 | -# ]) | ... | ... |