extended to add sloppy note parsing and slight more customised anchor tags for links