Closed jonatanklosko closed 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:
<tag>...</tag>some more content
[{"kbd", [], ["Ctrl"], %{verbatim: true}}, "+", [{"kbd", [], ["A"], %{verbatim: true}}]]
Will be fixed with #7
Given a single line with multiple tag pairs, all except the first one are ignored:
The parser shouldn't drop the content, so I think we could either:
<tag>...</tag>some more content
as a paragraph (this mirrors the behaviour if the same sequence was in the middle of the text)[{"kbd", [], ["Ctrl"], %{verbatim: true}}, "+", [{"kbd", [], ["A"], %{verbatim: true}}]]