Rewrite only links to HTML files

Fixes #25