Add markdown reference links
Add a (partial) autoescape for ampersands