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

Full reference LINK_TEXT should not allow links #90

Open
katepol opened this issue Aug 31, 2021 · 0 comments
Open

Full reference LINK_TEXT should not allow links #90

katepol opened this issue Aug 31, 2021 · 0 comments

Comments

@katepol
Copy link

katepol commented Aug 31, 2021

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.

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

1 participant