Rewrite ns reference in markdown/html