From e6f97ff4ebba92199aa66e334920b82cb0eea72e Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 27 Nov 2019 16:52:26 -0500 Subject: [PATCH] links might also contain underscores --- lib/textile/lexer.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()])) ])