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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e02d6b5a2bd270dd4a2801062964c3ce3de48443
4
- data.tar.gz: d24931a4f74b44f4fcfa5f7a5a69b37de51a77c6
3
+ metadata.gz: dcf1e5ac17bf604957fee49ceb8d92debc5b5c9a
4
+ data.tar.gz: e863b8bdc53d0cd10e507d69a58ad56df914324d
5
5
  SHA512:
6
- metadata.gz: 6a8cf65af4b448aa37056b05c643b0f7af403f7b175e953036d4becea7910e2d111bc715670571e452d241fb6a773ddbb4e00e8f2e8a2045d6a90d4b436411d5
7
- data.tar.gz: f5848f1db7010a58de4afd1a05b36215e07250110d37a9e8f3e15aa13dbc90cd298e74d1b3a1f9884e3f574db748a8648853ee8966a97b9373f5c2dcb0a7aeb4
6
+ metadata.gz: ac1110b24b31cb8e387636af084860ca630d850f2eec8febc961a4116947944c287f4b72d9a352a93a05d820d4b465c509cea70c7cc613091b209ee31534e53c
7
+ data.tar.gz: 154f17455d2c459f72cab8fb2e0f98d0e1675824cefa1a033105fd770eaf422462e0f2edc56220609f350038dcc1c6baa5729985221685e9624b29a8caa2054b
@@ -1,6 +1,6 @@
1
1
  Count Name
2
2
  ======= ====
3
- 872 Thomas Leitner <t_leitner@gmx.at>
3
+ 874 Thomas Leitner <t_leitner@gmx.at>
4
4
  6 Gioele Barabucci <gioele@svario.it>
5
5
  4 Ted Pak <powerpak006@gmail.com>
6
6
  4 Shuanglei Tao <tsl0922@gmail.com>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.16.0
1
+ 1.16.1
@@ -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.0**{:itemprop="softwareVersion"} released on
101
- **2017-11-27**{:itemprop="datePublished"}, [more news](news.html)
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>
@@ -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!( /\[x\]\s+/i, box_checked)
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
@@ -10,6 +10,6 @@
10
10
  module Kramdown
11
11
 
12
12
  # The kramdown version.
13
- VERSION = '1.16.0'
13
+ VERSION = '1.16.1'
14
14
 
15
15
  end
@@ -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>first ul item</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.0
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-27 00:00:00.000000000 Z
11
+ date: 2017-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest