Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Commit

Permalink
fixes to mediawiki.rules for links
Browse files Browse the repository at this point in the history
  • Loading branch information
Cliff Wells committed Apr 19, 2012
1 parent e9e77da commit 952e43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediawiki.rules
Expand Up @@ -193,9 +193,9 @@ italblock = "''{0}''"
sanitize = True
collapse = True
_wikipage = ''.join ([p.capitalize () for p in filename.split ('_')[1:]])
# _doc = re.sub (ur'(\.\./)?(.+?)\.xml', ur'\2', elem.get ('doc')) if elem.get ('doc') else ""
_id = "#{0}".format (elem.get ('id')) if elem.get ('id') else ""
_text = "{0}" if elem.text else elem.get ('id')
# _anchor = '<span id="{0}">{{0}}</span>'.format (_id)
format = "[[{wikipage}{id}|{text}]]".format (id=_id, text=_text, wikipage=_wikipage)

~ /command(\[\d+\])?$
Expand Down

0 comments on commit 952e43f

Please sign in to comment.