Open ajalt opened 4 years ago
@ajalt Hi, sorry for the lag. I read spec as there actually is a special notion of emails(link), it adds mailto:
to the beginning. So, in between <>
there should be either absolute url, or something url-ish.
Example of non-absolute non-url-ish thing: https://spec.commonmark.org/dingus/?text=%3CMAILTO%3AFOO%40BAR.BAZ%3E%0A
The case you posted, however, looks like a bug anyway, because we should parse email autolinks correctly.
perhaps there should be wrapping MarkdownElementType for EMAIL_AUTOLINK token, just as it is done for AUTOLINK
The following markdown:
Renders incorrectly as:
The CommonMark spec doesn't treat email addresses in autolinks specially. But this library has a special
EMAIL_AUTOLINK
token type that isn't parsed or rendered correctly:I would suggest removing that token type.