motion-markdown-it-plugins 8.4.2 → 8.4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/motion-markdown-it-plugins/abbr/abbr.rb +4 -4
- data/lib/motion-markdown-it-plugins/container/container.rb +3 -3
- data/lib/motion-markdown-it-plugins/deflist/deflist.rb +2 -2
- data/lib/motion-markdown-it-plugins/ins/ins.rb +1 -1
- data/lib/motion-markdown-it-plugins/mark/mark.rb +1 -1
- data/lib/motion-markdown-it-plugins/sub/sub.rb +2 -2
- data/lib/motion-markdown-it-plugins/sup/sup.rb +2 -2
- data/lib/motion-markdown-it-plugins/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8a7df35940272c7407149af82df9ab121dd4686eef9d260f826a8836ccaf604f
|
4
|
+
data.tar.gz: 28a17d2a37439cd4ac78d0e4ae5d48521bb4e9a4703389a88345837fcdf13104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40fe0ef0051ed4841dc22743a7f0e4929aec222c0bee783b4952d9ee9fe33b0d139f833cf29b8c6266c861433f13143f67337d8c2cfdd71ddc592cbdb5ed55ac
|
7
|
+
data.tar.gz: 7b2cc65164378073fb6311112c350933ec6ab89f276a0c90525213600831ab9790df549529b1d77a8306dba5f25b7ed542b8b99dbf45c2d31f55145d4bafe037
|
@@ -29,15 +29,15 @@ module MotionMarkdownItPlugins
|
|
29
29
|
max = state.eMarks[startLine]
|
30
30
|
|
31
31
|
return false if (pos + 2 >= max)
|
32
|
-
return false if (state.src
|
32
|
+
return false if charCodeAt(state.src, pos) != 0x2A # '*'
|
33
33
|
pos += 1
|
34
|
-
return false if (state.src
|
34
|
+
return false if charCodeAt(state.src, pos) != 0x5B # '['
|
35
35
|
pos += 1
|
36
36
|
|
37
37
|
labelStart = pos
|
38
38
|
|
39
39
|
while pos < max
|
40
|
-
ch = state.src
|
40
|
+
ch = charCodeAt(state.src, pos)
|
41
41
|
if (ch == 0x5B) # '['
|
42
42
|
return false
|
43
43
|
elsif (ch == 0x5D) # ']'
|
@@ -49,7 +49,7 @@ module MotionMarkdownItPlugins
|
|
49
49
|
pos += 1
|
50
50
|
end
|
51
51
|
|
52
|
-
return false if (labelEnd.nil? || state.src
|
52
|
+
return false if (labelEnd.nil? || charCodeAt(state.src, labelEnd + 1) != 0x3A) # ':'
|
53
53
|
return true if (silent)
|
54
54
|
|
55
55
|
label = state.src.slice(labelStart...labelEnd).gsub(/\\(.)/, '\1')
|
@@ -26,7 +26,7 @@ module MotionMarkdownItPlugins
|
|
26
26
|
@name = name
|
27
27
|
@min_markers = 3
|
28
28
|
@marker_str = @options[:marker] || ':'
|
29
|
-
@marker_char = @marker_str
|
29
|
+
@marker_char = charCodeAt(@marker_str, 0)
|
30
30
|
@marker_len = @marker_str.length
|
31
31
|
@validate = @options[:validate] || lambda {|params| validateDefault(params) }
|
32
32
|
@render = @options[:render] || lambda {|tokens, idx, _options, env, renderer| renderDefault(tokens, idx, _options, env, renderer) }
|
@@ -56,7 +56,7 @@ module MotionMarkdownItPlugins
|
|
56
56
|
|
57
57
|
# Check out the first character quickly,
|
58
58
|
# this should filter out most of non-containers
|
59
|
-
return false if (@marker_char != state.src
|
59
|
+
return false if (@marker_char != charCodeAt(state.src, start))
|
60
60
|
|
61
61
|
# Check out the rest of the marker string
|
62
62
|
pos = start + 1
|
@@ -98,7 +98,7 @@ module MotionMarkdownItPlugins
|
|
98
98
|
break
|
99
99
|
end
|
100
100
|
|
101
|
-
next if (@marker_char != state.src
|
101
|
+
next if (@marker_char != charCodeAt(state.src, start))
|
102
102
|
|
103
103
|
if (state.sCount[nextLine] - state.blkIndent >= 4)
|
104
104
|
# closing fence should be indented less than 4 spaces
|
@@ -24,7 +24,7 @@ module MotionMarkdownItPlugins
|
|
24
24
|
return -1 if (start >= max)
|
25
25
|
|
26
26
|
# Check bullet
|
27
|
-
marker = state.src
|
27
|
+
marker = charCodeAt(state.src, start)
|
28
28
|
start += 1
|
29
29
|
return -1 if (marker != 0x7E && marker != 0x3A) # '~' ':'
|
30
30
|
|
@@ -117,7 +117,7 @@ module MotionMarkdownItPlugins
|
|
117
117
|
offset = state.sCount[ddLine] + contentStart - (state.bMarks[ddLine] + state.tShift[ddLine])
|
118
118
|
|
119
119
|
while pos < max
|
120
|
-
ch = state.src
|
120
|
+
ch = charCodeAt(state.src, pos)
|
121
121
|
|
122
122
|
if isSpace(ch)
|
123
123
|
if ch == 0x09
|
@@ -15,7 +15,7 @@ module MotionMarkdownItPlugins
|
|
15
15
|
#------------------------------------------------------------------------------
|
16
16
|
def self.tokenize(state, silent)
|
17
17
|
start = state.pos
|
18
|
-
marker = state.src
|
18
|
+
marker = charCodeAt(state.src, start)
|
19
19
|
|
20
20
|
return false if silent
|
21
21
|
|
@@ -20,14 +20,14 @@ module MotionMarkdownItPlugins
|
|
20
20
|
max = state.posMax
|
21
21
|
start = state.pos
|
22
22
|
|
23
|
-
return false if (state.src
|
23
|
+
return false if charCodeAt(state.src, start) != 0x7E # '~'
|
24
24
|
return false if (silent) # don't run any pairs in validation mode
|
25
25
|
return false if (start + 2 >= max)
|
26
26
|
|
27
27
|
state.pos = start + 1
|
28
28
|
|
29
29
|
while (state.pos < max)
|
30
|
-
if (state.src
|
30
|
+
if charCodeAt(state.src, state.pos) == 0x7E # '~'
|
31
31
|
found = true
|
32
32
|
break
|
33
33
|
end
|
@@ -20,14 +20,14 @@ module MotionMarkdownItPlugins
|
|
20
20
|
max = state.posMax
|
21
21
|
start = state.pos
|
22
22
|
|
23
|
-
return false if (state.src
|
23
|
+
return false if charCodeAt(state.src, start) != 0x5E # '^'
|
24
24
|
return false if (silent) # don't run any pairs in validation mode
|
25
25
|
return false if (start + 2 >= max)
|
26
26
|
|
27
27
|
state.pos = start + 1
|
28
28
|
|
29
29
|
while (state.pos < max)
|
30
|
-
if (state.src
|
30
|
+
if charCodeAt(state.src, state.pos) == 0x5E # '^'
|
31
31
|
found = true
|
32
32
|
break
|
33
33
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-markdown-it-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.4.2
|
4
|
+
version: 8.4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-markdown-it
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 8.4.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 8.4.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bacon-expect
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.6
|
101
|
+
rubygems_version: 2.7.6
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Plugins for motion-markdown-it
|