diff --git a/lib/fast_textile/lexer.ex b/lib/fast_textile/lexer.ex index 0714a098..f2ea08f7 100644 --- a/lib/fast_textile/lexer.ex +++ b/lib/fast_textile/lexer.ex @@ -27,7 +27,7 @@ defmodule FastTextile.Lexer do |> unwrap_and_tag(:newline) link_ending_characters = - utf8_char('#$%&(),./:;<=?\\`|\'') + utf8_char('#$%&(),.:;<=?\\`|\'') bracket_link_ending_characters = utf8_char('" []') diff --git a/lib/fast_textile/parser.ex b/lib/fast_textile/parser.ex index 44746eae..f784b7c7 100644 --- a/lib/fast_textile/parser.ex +++ b/lib/fast_textile/parser.ex @@ -283,7 +283,7 @@ defmodule FastTextile.Parser do defp inline_textile_element_not_opening_markup(parser, [{:bq_cite_start, start} | r_tokens]) do case repeat(&bq_cite_text/2, parser, r_tokens) do {:ok, tree, [{:bq_cite_open, _} | r2_tokens]} -> - case repeat(&inline_textile_element/2, parser, r2_tokens) do + case repeat(&block_textile_element/2, parser, r2_tokens) do {:ok, tree2, [{:bq_close, _} | r3_tokens]} -> cite = escape(flatten(tree))