fix broken href parsing when adding a link. fixes #1
Merge branch 'master' into gh-pages