Commit 8aa69352 authored by Alexandre Leray's avatar Alexandre Leray
Browse files

Fixed markdown semantic wikilinks callback

The last version of the markdown plugin defines an extra parameter which
is the current markdown instance. See:

- <http://git.constantvzw.org/?p=aa.mdx_semanticwikilinks.git;a=tree> or
- <https://github.com/aleray/mdx_semanticwikilinks/commit/f3bfe05e232a9bff0e3dccf0f8b8c6fb598ec9ba>
parent 7e73e3f6
......@@ -20,7 +20,7 @@ from aawiki.utils import url_for_pagename
import urlparse
def aa_make_link(rel, target, label):
def aa_make_link(md, rel, target, label):
a = etree.Element('a')
# FIXME: This was added to give anchor support within a wiki page.
......@@ -58,7 +58,7 @@ def aa_make_link(rel, target, label):
return a
def aa_make_elt (rel, target, label):
def aa_make_elt (md, rel, target, label):
if rel == "dc:title":
elt = markdown.util.etree.Element('cite')
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment