pegdown
pegdown copied to clipboard
Rendering escaped dot in e-mail
In PegDown 1.6.0
This
pegDownProcessor.markdownToHtml("someemail@gmail\\.com");
does not remove the escaping , the result is
This some\[email protected]
is rendered as
some.[email protected]
It works OK for non-link text:
pegDownProcessor.markdownToHtml("someemailgmail\\.com");
renders as
someemailgmail.com
I'm not sure if this is a bug or the dot in an e-mail is simply expected not to be escaped.
EDIT:
the processor is constructed with AUTOLINKS extension included:
PegDownProcessor pegDownProcessor = new PegDownProcessor(Extensions.ALL)