Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering escaped dot in e-mail #246

Open
ziacik opened this issue Oct 14, 2016 · 0 comments
Open

Rendering escaped dot in e-mail #246

ziacik opened this issue Oct 14, 2016 · 0 comments

Comments

@ziacik
Copy link

ziacik commented Oct 14, 2016

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant