pegdown icon indicating copy to clipboard operation
pegdown copied to clipboard

Rendering escaped dot in e-mail

Open ziacik opened this issue 9 years ago • 0 comments

In PegDown 1.6.0

This pegDownProcessor.markdownToHtml("someemail@gmail\\.com");

does not remove the escaping , the result is

[email protected]

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)

ziacik avatar Oct 14 '16 09:10 ziacik