diff --git a/lib/textile/lexer.ex b/lib/textile/lexer.ex index 61792c13..e1fb7500 100644 --- a/lib/textile/lexer.ex +++ b/lib/textile/lexer.ex @@ -125,13 +125,13 @@ defmodule Textile.Lexer do link_url_stop = choice([ string("*"), - string("_"), string("@"), string("^"), string("~"), string("."), string("!"), string(","), + string("_") |> concat(choice([space(), eos()])), string("?") |> concat(choice([space(), eos()])) ])