fix markup at start

This commit is contained in:
byte[] 2019-11-08 21:13:17 -05:00
parent 0ed5c127f9
commit bba114e4eb

View file

@ -178,7 +178,7 @@ defmodule Textile.Lexer do
{markup_start, markup_element} = markup_ending_in(eos()) {markup_start, markup_element} = markup_ending_in(eos())
textile_main = textile_default =
choice([ choice([
bracketed_literal, bracketed_literal,
blockquote_open_cite, blockquote_open_cite,
@ -187,13 +187,18 @@ defmodule Textile.Lexer do
spoiler_open, spoiler_open,
spoiler_close, spoiler_close,
link, link,
image, image
])
textile_main =
choice([
textile_default,
markup_element markup_element
]) ])
textile_start = textile_start =
choice([ choice([
textile_main, textile_default,
markup_start markup_start
]) ])