Fix emitting invalid line type
This commit is contained in:
parent
322c233e18
commit
cc6f4e0437
|
@ -72,12 +72,12 @@ defmodule Gemini do
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
preformatting_toggle && in_preformatting ->
|
preformatting_toggle && in_preformatting ->
|
||||||
{[:preformatting_end | lines], false}
|
{[:preformatted_end | lines], false}
|
||||||
|
|
||||||
preformatting_toggle && !in_preformatting ->
|
preformatting_toggle && !in_preformatting ->
|
||||||
"```" <> alt = line
|
"```" <> alt = line
|
||||||
alt = if alt == "", do: nil, else: alt
|
alt = if alt == "", do: nil, else: alt
|
||||||
{[{:preformatting_start, alt} | lines], true}
|
{[{:preformatted_start, alt} | lines], true}
|
||||||
|
|
||||||
in_preformatting ->
|
in_preformatting ->
|
||||||
{[{:preformatted, line} | lines], true}
|
{[{:preformatted, line} | lines], true}
|
||||||
|
|
Loading…
Reference in New Issue