From 35d80bcf9c750b567ff593b4698a2a587f1b7c22 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 14 Sep 2020 21:20:17 -0400 Subject: [PATCH] don't lex closing bbcode as part of a link (furbooru/philomena#36) --- lib/philomena/textile/lexer.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/philomena/textile/lexer.ex b/lib/philomena/textile/lexer.ex index baef3286..01ac6db4 100644 --- a/lib/philomena/textile/lexer.ex +++ b/lib/philomena/textile/lexer.ex @@ -32,6 +32,7 @@ defmodule Philomena.Textile.Lexer do end_of_link = choice([ concat(link_ending_characters, extended_space), + string("[/"), extended_space ])