more adjacency

This commit is contained in:
byte[] 2019-11-30 13:04:07 -05:00
parent e24c3e812f
commit ff27a0992f

View file

@ -159,7 +159,7 @@ defmodule Textile.MarkupLexer do
literal,
bracketed_markup_closing_tags,
bracketed_markup_opening_tags |> lookahead_not(space()),
preceding_whitespace |> times(markup_opening_tags, min: 1),
preceding_whitespace |> times(markup_opening_tags, min: 1) |> lookahead_not(ending_sequence),
times(markup_closing_tags, min: 1) |> lookahead(choice([special_characters(), ending_sequence])),
double_newline,
newline,