Correct handling of link href

This commit is contained in:
Ian Gulliver
2014-07-02 10:00:33 -07:00
parent d37ef27e8a
commit 980c877f56
2 changed files with 6 additions and 5 deletions

View File

@@ -312,5 +312,6 @@ mediawiki = rr.Parser({
rr.ExtractElement('preline'),
rr.SplitElementAndNest('src', ['imgtemp', 'src']),
rr.ChildToAttribute('imgtemp', 'src'),
rr.RenameElement('imgtemp', 'img')
rr.RenameElement('imgtemp', 'img'),
rr.ChildToAttribute('a', 'href')
]);