From 9e5d4e02d838fc3048502e5b6e9ce0f27de977b2 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 27 Nov 2019 16:53:52 -0500 Subject: [PATCH] re-add space/eos to stop tokens --- lib/textile/lexer.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/textile/lexer.ex b/lib/textile/lexer.ex index e1fb7500..fc43d33b 100644 --- a/lib/textile/lexer.ex +++ b/lib/textile/lexer.ex @@ -132,7 +132,9 @@ defmodule Textile.Lexer do string("!"), string(","), string("_") |> concat(choice([space(), eos()])), - string("?") |> concat(choice([space(), eos()])) + string("?") |> concat(choice([space(), eos()])), + space(), + eos() ]) link_contents_start =