flatten links array as scan with regex groups returns nested array
Merge pull request #3 from mklappstuhl/master

properly replace all rewritten links