Code

Ticket #2910: markup.diff

File markup.diff, 421 bytes (added by waylan@…, 8 years ago)

diff for adding extention support to markdown

Line 
132c32
2< def markdown(value):
3---
4> def markdown(value, arg=''):
540c40,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)