JetBrains / JetBrains/markdown

Autolinks with email addresses parse incorrectly

Open
#50 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
958
Forks
104
Avg merge
17h 30m
Merged PRs (30d)
12

Description

The following markdown:

```markdown

```

Renders incorrectly as:

```html

<foo@bar.baz>


```

The [CommonMark spec](https://spec.commonmark.org/0.29/#example-593) 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:

```
Markdown:PARAGRAPH
Markdown:< '<'
Markdown:EMAIL_AUTOLINK 'foo@bar.baz'
Markdown:> '>'
```

I would suggest removing that token type.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.