kramdown 1.16.0 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of kramdown might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CONTRIBUTERS +1 -1
- data/VERSION +1 -1
- data/doc/index.page +2 -2
- data/lib/kramdown/parser/gfm.rb +3 -2
- data/lib/kramdown/version.rb +1 -1
- data/test/testcases_gfm/task_list.html +11 -2
- data/test/testcases_gfm/task_list.text +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcf1e5ac17bf604957fee49ceb8d92debc5b5c9a
|
4
|
+
data.tar.gz: e863b8bdc53d0cd10e507d69a58ad56df914324d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac1110b24b31cb8e387636af084860ca630d850f2eec8febc961a4116947944c287f4b72d9a352a93a05d820d4b465c509cea70c7cc613091b209ee31534e53c
|
7
|
+
data.tar.gz: 154f17455d2c459f72cab8fb2e0f98d0e1675824cefa1a033105fd770eaf422462e0f2edc56220609f350038dcc1c6baa5729985221685e9624b29a8caa2054b
|
data/CONTRIBUTERS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.16.
|
1
|
+
1.16.1
|
data/doc/index.page
CHANGED
@@ -97,8 +97,8 @@ extensions that have been made popular by the [PHP Markdown Extra] package and [
|
|
97
97
|
It is probably the fastest pure-Ruby Markdown converter available (September 2014), being about 3x
|
98
98
|
faster than [Maruku] and about 4.5x faster than [BlueFeather].
|
99
99
|
|
100
|
-
Version **1.16.
|
101
|
-
**2017-11-
|
100
|
+
Version **1.16.1**{:itemprop="softwareVersion"} released on
|
101
|
+
**2017-11-28**{:itemprop="datePublished"}, [more news](news.html)
|
102
102
|
{: style="text-align: center; font-size: 80%"}
|
103
103
|
|
104
104
|
</div>
|
data/lib/kramdown/parser/gfm.rb
CHANGED
@@ -166,9 +166,10 @@ module Kramdown
|
|
166
166
|
box_checked = '<input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked" />'
|
167
167
|
|
168
168
|
current_list.children.each do |li|
|
169
|
+
next unless li.children.size > 0 && li.children[0].type == :p
|
169
170
|
# li -> p -> raw_text
|
170
|
-
checked = li.children[0].children[0].value.gsub!(/\[ \]\s+/, box_unchecked)
|
171
|
-
unchecked = li.children[0].children[0].value.gsub!(
|
171
|
+
checked = li.children[0].children[0].value.gsub!(/\A\s*\[ \]\s+/, box_unchecked)
|
172
|
+
unchecked = li.children[0].children[0].value.gsub!(/\A\s*\[x\]\s+/i, box_checked)
|
172
173
|
is_tasklist ||= (!checked.nil? || !unchecked.nil?)
|
173
174
|
|
174
175
|
li.attr['class'] = 'task-list-item' if is_tasklist
|
data/lib/kramdown/version.rb
CHANGED
@@ -4,13 +4,22 @@
|
|
4
4
|
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" />first ul task item</li>
|
5
5
|
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked" />second ul task item</li>
|
6
6
|
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked" />third ul task item</li>
|
7
|
-
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" />fourth ul task item</li>
|
7
|
+
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" />fourth ul task item [ ] next</li>
|
8
8
|
</ul>
|
9
9
|
|
10
10
|
<p>unordered list</p>
|
11
11
|
|
12
12
|
<ul>
|
13
|
-
<li>
|
13
|
+
<li>
|
14
|
+
<blockquote>
|
15
|
+
<p>first ul item</p>
|
16
|
+
</blockquote>
|
17
|
+
</li>
|
18
|
+
<li></li>
|
19
|
+
<li>
|
20
|
+
<pre><code>test
|
21
|
+
</code></pre>
|
22
|
+
</li>
|
14
23
|
<li>second ul item</li>
|
15
24
|
</ul>
|
16
25
|
|
@@ -3,11 +3,14 @@ unordered task list
|
|
3
3
|
- [ ] first ul task item
|
4
4
|
- [x] second ul task item
|
5
5
|
- [X] third ul task item
|
6
|
-
- [ ] fourth ul task item
|
6
|
+
- [ ] fourth ul task item [ ] next
|
7
7
|
|
8
8
|
unordered list
|
9
9
|
|
10
|
-
- first ul item
|
10
|
+
- > first ul item
|
11
|
+
-
|
12
|
+
-
|
13
|
+
test
|
11
14
|
- second ul item
|
12
15
|
|
13
16
|
ordered list
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Leitner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|