fixed prefix in markmin ...:cite

This commit is contained in:
mdipierro committed 2013-09-06 15:35:27 -05:00
1 parent 6203fcb852
commit 58e02c6f24
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.09.06.15.17.26 Version 2.6.0-development+timestamp.2013.09.06.15.34.34
+3 -3
View File
@@ -745,8 +745,8 @@ def render(text,
>>> render("----\\nhello world\\n----\\n") >>> render("----\\nhello world\\n----\\n")
'<blockquote>hello world</blockquote>' '<blockquote>hello world</blockquote>'
>>> render('[[http://example.com]]') >>> render('[[myanchor]]')
'<p><span class="anchor" id="markmin_http://example.com"></span></p>' '<p><span class="anchor" id="markmin_myanchor"></span></p>'
>>> render('[[ http://example.com]]') >>> render('[[ http://example.com]]')
'<p><a href="http://example.com">http://example.com</a></p>' '<p><a href="http://example.com">http://example.com</a></p>'
@@ -1379,7 +1379,7 @@ def render(text,
return str(extra[b](code)) return str(extra[b](code))
elif b=='cite': elif b=='cite':
return '['+','.join('<a href="#%s" class="%s">%s</a>' \ return '['+','.join('<a href="#%s" class="%s">%s</a>' \
% (d,b,d) \ % (id_prefix+d,b,d) \
for d in escape(code).split(','))+']' for d in escape(code).split(','))+']'
elif b=='latex': elif b=='latex':
return LATEX % code.replace('"','\"').replace('\n',' ') return LATEX % code.replace('"','\"').replace('\n',' ')