card-mod-content 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- metadata +4 -5
- data/lib/card/content/chunk/keep_escaped_literal.rb +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d4bf4c3d68999515a54cd1015fdd183cf8bf0a756ffd2bd171b4ff4723d50b8
|
4
|
+
data.tar.gz: d2cfd66cd9b4ef214c70743010616fdefe65662731d7a475bc9788604d522074
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b81064c8f3ccec506a7a244fcc8ba6a2e09174bf64c36378c93178c9997db0a34d70415892dfd4562984b9b8c439372c25642ede54a0c90923e09384b40b25cf
|
7
|
+
data.tar.gz: 850b39a36d0a179e39218cfcb2dd24c4f98bede5278bb1edebfb7fd1f9bf4a2da0fff5f7ab706f892a6967f1061df55c4c0026b38a1c8521d4727b7630e0a74b
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-09-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.103.
|
21
|
+
version: 1.103.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.103.
|
28
|
+
version: 1.103.3
|
29
29
|
description: ''
|
30
30
|
email:
|
31
31
|
- info@decko.org
|
@@ -35,7 +35,6 @@ extra_rdoc_files: []
|
|
35
35
|
files:
|
36
36
|
- db/migrate_core_cards/20201115133753_add_asset_file_card.rb
|
37
37
|
- lib/card/content/chunk/escaped_literal.rb
|
38
|
-
- lib/card/content/chunk/keep_escaped_literal.rb
|
39
38
|
- lib/card/content/chunk/link.rb
|
40
39
|
- lib/card/content/chunk/nest.rb
|
41
40
|
- lib/card/content/chunk/query_reference.rb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
|
3
|
-
class Card
|
4
|
-
class Content
|
5
|
-
module Chunk
|
6
|
-
# These are basic chunks that have a pattern and can be protected.
|
7
|
-
# This chunk is used for markdown processing to ensure that
|
8
|
-
# the escaping survives the markdown rendering.
|
9
|
-
class KeepEscapedLiteral < Abstract
|
10
|
-
FULL_RE = { "[" => /\A\\\[\[[^\]]*\]\]/,
|
11
|
-
"{" => /\A\\\{\{[^}]*\}\}/ }.freeze
|
12
|
-
Card::Content::Chunk.register_class self,
|
13
|
-
prefix_re: '\\\\(?:\\[\\[|\\{\\{)',
|
14
|
-
idx_char: "\\"
|
15
|
-
|
16
|
-
def self.full_re prefix
|
17
|
-
FULL_RE[prefix[1, 1]]
|
18
|
-
end
|
19
|
-
|
20
|
-
def interpret match, _content
|
21
|
-
@process_chunk = match[0].sub(/^\\(.)/, '\\\\\\\\\1')
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|