peterjc / mediawiki_to_git_md

Convert a MediaWiki export XML file into MarkDown as a series of git commits
MIT License
55 stars 17 forks source link

Convert usernames in commit comments #12

Open peterjc opened 9 years ago

peterjc commented 9 years ago

Sometimes the mediawiki comments have usernames, which we can map to @ style GitHub usernames. e.g.

Reverted edits by [[Special:Contributions/xxx|xxx]] ([[User talk:xxx|talk]]) to last revision by [[User:Peter|Peter]]

-->

Reverted edits by @xxx to last revision by @peterjc

As a bonus this is much shorter so the logs look nicer.