Closed lexmag closed 3 years ago
Same reasoning as in #30 https://github.com/RobertDober/earmark_parser#html-blocks
@RobertDober sorry for piling on, is the following also expected given current implementation? That is we have raw html in the same line but after some markdown.
md = """
*foo* <em>bar</em>
"""
Earmark.as_html!(md)
|> IO.puts()
# Outputs:
# <p>
# <em>foo</em> <em>bar</em></p>
EarmarkParser.as_ast(md)
|> IO.inspect()
# Outputs:
# {:ok, [{"p", [], [{"em", [], ["foo"], %{}}, " <em>bar</em>"], %{}}], []}
# NOTE: no %{verbatim: true}!
Yes indeed HTML is only parsed as such if in its own line, I should be working on this, alas, I am very busy looking for a job.
and no need whatsoever to apologise 😉
To reproduce:
v1.4.12 gives: