-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
Description
I was doing some markdown of inline C code and noticed that the parser interprets ** inside ` as the end of the emphasis.
iex(1)> EarmarkParser.as_ast "**`**`**"
{:ok, [{"p", [], [{"strong", [], ["`"], %{}}, "`**"], %{}}], []}There is a simple workaround by using __ instead as the emphasis marker. i.e.
iex(2)> EarmarkParser.as_ast "__`**`__"
{:ok,
[
{"p", [],
[{"strong", [], [{"code", [{"class", "inline"}], ["**"], %{line: 1}}], %{}}],
%{}}
], []}