Skip to content

Possibly faulty parsing of close references #159

@garazdawi

Description

@garazdawi

The parser seems to think that [a] [b] is the same as [a][b].

iex(1)> EarmarkParser.as_ast "[a] [b]\n[a]: a\n[b]: b"
{:ok, [{"p", [], [{"a", [{"href", "b"}, {"title", ""}], ["a"], %{}}], %{}}], []}

The standard is a bit undecided. Gruber Markdown seems to do the same interpretation as earmark_parser, while github (and in extentions commonmark) thinks that it should be treated as two separate references.

I'm opening this issue to just track the discepency and see if you think we should do something about it.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions