Skip to content
Browse files

fixes to mediawiki.rules for links

  • Loading branch information...
1 parent e9e77da commit 952e43fa55c6e510e56472697ef8201d7275515b Cliff Wells committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mediawiki.rules
View
2 mediawiki.rules
@@ -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+\])?$

0 comments on commit 952e43f

Please sign in to comment.
Something went wrong with that request. Please try again.