diff --git a/lib/textile/markup_lexer.ex b/lib/textile/markup_lexer.ex index dc1e4db1..b8012066 100644 --- a/lib/textile/markup_lexer.ex +++ b/lib/textile/markup_lexer.ex @@ -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,