Handle markdown escapes in ANSIDocs, closes #1757