RobertDober / earmark_parser

The Markdown to AST part of Earmark.
Apache License 2.0
68 stars 26 forks source link

Parse multiple HTML tags in a single line #39

Closed jonatanklosko closed 3 years ago

jonatanklosko commented 3 years ago

Given a single line with multiple tag pairs, all except the first one are ignored:

iex> EarmarkParser.as_ast("<kbd>Ctrl</kbd>+<kbd>A</kbd>")
{:ok, [{"kbd", [], ["Ctrl"], %{verbatim: true}}], []}

The parser shouldn't drop the content, so I think we could either:

RobertDober commented 3 years ago

Will be fixed with #7