JetBrains / JetBrains/markdown

Full reference LINK_TEXT should not allow links

Open
#90 0 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
```
[foo [bar](/a)][ref]

[ref]: /b
```
is parsed into
```
Markdown:MARKDOWN_FILE
Markdown:PARAGRAPH
Markdown:FULL_REFERENCE_LINK
Markdown:LINK_TEXT
Markdown:[
Markdown:TEXT
WHITE_SPACE
Markdown:INLINE_LINK
Markdown:]
Markdown:LINK_LABEL
Markdown:EOL
Markdown:EOL
Markdown:LINK_DEFINITION
Markdown:LINK_LABEL
WHITE_SPACE
Markdown:LINK_DESTINATION
```
But due to spec https://spec.commonmark.org/0.30/#example-531 there should be 2 SHORT_REFERENCE_LINK.

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.