From 2c2ad9ee82f97c4b2492871678cc8f85ff147a87 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 16 Dec 2019 00:36:35 -0500 Subject: [PATCH] allow link bodies to contain bracketed literals --- lib/textile/lexer.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/textile/lexer.ex b/lib/textile/lexer.ex index a87d7455..7835b5ce 100644 --- a/lib/textile/lexer.ex +++ b/lib/textile/lexer.ex @@ -146,7 +146,8 @@ defmodule Textile.Lexer do blockquote_open, blockquote_open_cite, blockquote_close, - link_markup_start, + bracketed_literal, + link_markup_start ]) link_contents_element = @@ -157,6 +158,7 @@ defmodule Textile.Lexer do blockquote_open, blockquote_open_cite, blockquote_close, + bracketed_literal, link_markup_element ]) @@ -242,4 +244,4 @@ defmodule Textile.Lexer do defparsec :lex, textile -end \ No newline at end of file +end