Open ziacik opened 7 years ago
In PegDown 1.6.0
This pegDownProcessor.markdownToHtml("someemail@gmail\\.com");
pegDownProcessor.markdownToHtml("someemail@gmail\\.com");
does not remove the escaping \, the result is
someemail@gmail.com
This some\.email@gmail.com
some\.email@gmail.com
is rendered as
some.email@gmail.com
It works OK for non-link text: pegDownProcessor.markdownToHtml("someemailgmail\\.com");
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)
PegDownProcessor pegDownProcessor = new PegDownProcessor(Extensions.ALL)
In PegDown 1.6.0
This
pegDownProcessor.markdownToHtml("someemail@gmail\\.com");
does not remove the escaping \, the result is
This
some\.email@gmail.com
is rendered as
It works OK for non-link text:
pegDownProcessor.markdownToHtml("someemailgmail\\.com");
renders as
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)