Fix #503 by working around mysterious angular problem in markdown directive.