Ticket #2910: markup.diff
File markup.diff, 421 bytes (added by , 18 years ago) |
---|
Line | |
---|---|
1 | 32c32 |
2 | < def markdown(value): |
3 | --- |
4 | > def markdown(value, arg=''): |
5 | 40c40,46 |
6 | < return markdown.markdown(value) |
7 | --- |
8 | > extensions=arg.split(",") |
9 | > if len(extensions) > 0 and extensions[0] == "safe" : |
10 | > extensions = extensions[1:] |
11 | > safe_mode = True |
12 | > else : |
13 | > safe_mode = False |
14 | > return markdown.markdown(value, extensions, safe_mode=safe_mode) |