fixed makrmin again, note to self: always trust Valdyslav about markmin
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.7 (2012-09-06 08:59:06) stable
|
Version 2.0.7 (2012-09-06 10:53:59) stable
|
||||||
|
|||||||
@@ -1302,7 +1302,6 @@ def render(text,
|
|||||||
return '<pre><code%s%s>%s</code></pre>%s' % (cls, id, escape(code[1:-1]), pp)
|
return '<pre><code%s%s>%s</code></pre>%s' % (cls, id, escape(code[1:-1]), pp)
|
||||||
return '<code%s%s>%s</code>' % (cls, id, escape(code[beg:end]))
|
return '<code%s%s>%s</code>' % (cls, id, escape(code[beg:end]))
|
||||||
text = regex_expand_meta.sub(expand_meta, text)
|
text = regex_expand_meta.sub(expand_meta, text)
|
||||||
text = text.translate(ttab_out)
|
|
||||||
|
|
||||||
if environment:
|
if environment:
|
||||||
def u2(match, environment=environment):
|
def u2(match, environment=environment):
|
||||||
@@ -1315,7 +1314,8 @@ def render(text,
|
|||||||
return str(f)
|
return str(f)
|
||||||
text = regex_env.sub(u2, text)
|
text = regex_env.sub(u2, text)
|
||||||
|
|
||||||
return text
|
return text.translate(ttab_out)
|
||||||
|
|
||||||
|
|
||||||
def markmin2html(text, extra={}, allowed={}, sep='p',
|
def markmin2html(text, extra={}, allowed={}, sep='p',
|
||||||
autolinks='default', protolinks='default',
|
autolinks='default', protolinks='default',
|
||||||
|
|||||||
Reference in New Issue
Block a user