lib/card/content/chunk/keep_escaped_literal.rb in card-mod-content-0.11.4 vs lib/card/content/chunk/keep_escaped_literal.rb in card-mod-content-0.11.5
- old
+ new
@@ -6,13 +6,13 @@
# These are basic chunks that have a pattern and can be protected.
# This chunk is used for markdown processing to ensure that
# the escaping survives the markdown rendering.
class KeepEscapedLiteral < Abstract
FULL_RE = { "[" => /\A\\\[\[[^\]]*\]\]/,
- "{" => /\A\\\{\{[^\}]*\}\}/ }.freeze
+ "{" => /\A\\\{\{[^}]*\}\}/ }.freeze
Card::Content::Chunk.register_class self,
prefix_re: '\\\\(?:\\[\\[|\\{\\{)',
- idx_char: '\\'
+ idx_char: "\\"
def self.full_re prefix
FULL_RE[prefix[1, 1]]
end