From 99e239798151cae06e3a3634b48217a0cdcd5b23 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 25 Oct 2012 10:07:39 -0500 Subject: [PATCH] fixed issue 1113, thanks Nico --- VERSION | 2 +- gluon/contrib/markmin/markmin2html.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ab68522c..e4025c24 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-10-25 10:03:59) stable +Version 2.2.1 (2012-10-25 10:07:33) stable diff --git a/gluon/contrib/markmin/markmin2html.py b/gluon/contrib/markmin/markmin2html.py index 94084b0b..252ffc55 100755 --- a/gluon/contrib/markmin/markmin2html.py +++ b/gluon/contrib/markmin/markmin2html.py @@ -1262,6 +1262,10 @@ def render(text, t = t or '' a = escape(a) if a else '' if k: + if '#' in k and not ':' in k.split('#')[0]: + # wikipage, not external url + k=k.replace('#','#'+id_prefix) + if k.startswith('#'): k = '#'+id_prefix+k[1:] k = escape(k)