Skip to content

Rendering escaped dot in e-mail #246

@ziacik

Description

@ziacik

In PegDown 1.6.0

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

does not remove the escaping , the result is

someemail@gmail.com

This some\.email@gmail.com

is rendered as

some.email@gmail.com

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions