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