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

Unexpected output when bold and @user mixed using markdown_github #2940

Closed
mike-ward opened this issue May 22, 2016 · 1 comment
Closed

Unexpected output when bold and @user mixed using markdown_github #2940

mike-ward opened this issue May 22, 2016 · 1 comment

Comments

@mike-ward
Copy link

**@user** is converted to an email link using markdown_github

► pandoc -f markdown_github
**@user**
^Z
<p><script type="text/javascript">
<!--
h='&#x75;&#x73;&#x65;&#114;&#42;';a='&#64;';n='&#42;&#42;';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+e+'<\/'+'a'+'>');
// -->
</script><noscript>&#42;&#42;&#32;&#x61;&#116;&#32;&#x75;&#x73;&#x65;&#114;&#42;</noscript>*</p>
► pandoc
**@user**
^Z
<p><strong><span class="citation">@user</span></strong></p>

Is this expected?

@jgm
Copy link
Owner

jgm commented May 23, 2016

Hard case. GitHub markdown doesn't require <..> around
URLs and email addresses to turn them into links. And
**@user is actually a valid email address, though not
one you'd ever expect to see.

See
https://en.wikipedia.org/wiki/Email_address#Valid_email_addresses

A human can tell what's intended here, but it's unclear
what the rule should be that excludes interpreting this
as a bare email address.

@jgm jgm closed this as completed in bf72a48 Oct 23, 2016
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

2 participants