Rename `markdownEscape` to `escape` and improve escaping