tpl updates (quot escaping, markdown link in note edit)