This plugin works on 1.0, but a patch is needed for python 2.6, as the one proposed in #9157, or the following one:
diff -r ec2c58e517b9 markdownmacro/0.11/Markdown/macro.py
--- a/markdownmacro/0.11/Markdown/macro.py Sat Aug 11 22:09:49 2012 +0000
+++ b/markdownmacro/0.11/Markdown/macro.py Wed Sep 05 12:39:28 2012 +0200
@@ -27,7 +27,7 @@
LINK = compile(
r'(\]\()([^) ]+)([^)]*\))|(<)([^>]+)(>)|(\n\[[^]]+\]: *)([^ \n]+)(.*\n)'
-HREF = compile(r'href=[\'"]?([^\'" ]*)')
+HREF = compile(r'href=[\'"]?([^\'" ]*)', I)
__all__ = ['MarkdownMacro']
@@ -47,8 +47,7 @@
url = search(
# Trac creates relative links, which Markdown won't touch inside
# <autolinks> because they look like HTML
if pre == '<' and url != target:
I do not know python's internals, so I don't know which one is the more efficient.
I suppose that such a patch is compatible with other 2.x versions of python, but I was not able to check.