kramdown 1.13.1 → 1.13.2

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: f420a0557f646bc3286832c0ad6af10499d92e73
4
- data.tar.gz: 512e4690db83ec700e49c20ca43083135ac3602d
3
+ metadata.gz: 7ac24860921ac7d24babbeb2397b605667e526e6
4
+ data.tar.gz: de71ec32ce2b27eb011e80c1dfb24bf1f9e1298b
5
5
  SHA512:
6
- metadata.gz: 49637143c48081e1465c0d4a8d4074a743cb426a5331a340eeab5be61cd80b03a0fc215785cde3cc05340c9702dff031e355e87b94748c686e668e08f1574ad7
7
- data.tar.gz: b87998b4f079b2edf1bca0b9c331740e5bee44e2a1f88b0fa7ffed90af5251a52e2ba0b109a807901a2b410e737b4950136ba0fc6915fb35e0c7e5f977de51c0
6
+ metadata.gz: 44277038c2e63576e706f7bdd2b9b993822c3fb092d4fcc6d866d9bf67b027c4aa9ddea79ea9ab4ba50e720f5bcda3c00b5dbaefd9f28d32adfee2d51fc1d5c6
7
+ data.tar.gz: e9e836ae44d96518f45597131b0cfce32eb987f824d5c6fa3ff8e5aa25fe3eadee5d150dfb7171c4f9d4aa6761d906f7619c5975f05800c832b511cfcbeeaf18
@@ -8,7 +8,7 @@
8
8
  <meta name="keywords" content="ruby, kramdown, markdown, text markup" />
9
9
  <link href="{relocatable: default.css}" type="text/css" rel="stylesheet" media="screen,projection" />
10
10
  <link href="{relocatable: news.atom}" type="application/atom+xml" rel="alternate" />
11
- <script src="http://kramdown.gettalong.org/MathJax/MathJax.js" type="text/javascript"></script>
11
+ <script src="//kramdown.gettalong.org/MathJax/MathJax.js" type="text/javascript"></script>
12
12
  <title>{title:} | kramdown</title>
13
13
  </head>
14
14
  <body>
@@ -47,22 +47,16 @@
47
47
  <div class="float-right">Generated by <a href="http://webgen.gettalong.org">webgen</a></div>
48
48
  </footer>
49
49
 
50
- <!-- Start of StatCounter Code -->
50
+ <!-- Start of StatCounter Code for Default Guide -->
51
51
  <script type="text/javascript">
52
52
  var sc_project=4267845;
53
53
  var sc_invisible=1;
54
- var sc_partition=46;
55
- var sc_click_stat=1;
56
54
  var sc_security="41321455";
57
- </script>
58
-
59
- <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
60
- <noscript><div class="statcounter">
61
- <a title="web counter" class="statcounter" href="http://www.statcounter.com/free_hit_counter.html">
62
- <img class="statcounter" src="http://c.statcounter.com/4267845/0/41321455/1/" alt="web counter" />
63
- </a>
64
- </div></noscript>
65
- <!-- End of StatCounter Code -->
55
+ var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www.");
56
+ document.write("<sc"+"ript type='text/javascript' src='" + scJsHost + "statcounter.com/counter/counter.js'></" + "script>");
57
+ </script>
58
+ <noscript><div class="statcounter"><a title="website statistics" href="http://statcounter.com/" target="_blank"><img class="statcounter" src="//c.statcounter.com/4267845/0/41321455/1/" alt="website statistics" /></a></div></noscript>
59
+ <!-- End of StatCounter Code for Default Guide -->
66
60
 
67
61
  </body>
68
62
  </html>
@@ -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.13.1**{:itemprop="softwareVersion"} released on
101
- **2016-11-25**{:itemprop="datePublished"}, [more news](news.html)
100
+ Version **1.13.2**{:itemprop="softwareVersion"} released on
101
+ **2017-01-07**{:itemprop="datePublished"}, [more news](news.html)
102
102
  {: style="text-align: center; font-size: 80%"}
103
103
 
104
104
  </div>
@@ -10,7 +10,7 @@ donation (PayPal or Pledgie) -- it will surely be appreciated! Thanks!</p>
10
10
  <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
11
11
  </form>
12
12
 
13
- <a href='http://www.pledgie.com/campaigns/16657'><img alt='Click here to lend your support to: kramdown and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/16657.png?skin_name=chrome' border='0' /></a>
13
+ <a href='https://pledgie.com/campaigns/16657'><img alt='Click here to lend your support to: kramdown and make a donation at pledgie.com !' src='https://pledgie.com/campaigns/16657.png?skin_name=chrome' border='0' ></a>
14
14
 
15
15
  <h2>Sponsors</h2>
16
16
 
@@ -453,9 +453,9 @@ module Kramdown
453
453
  end
454
454
 
455
455
  unless @options[:footnote_backlink].empty?
456
- para.children << Element.new(:raw, FOOTNOTE_BACKLINK_FMT % [insert_space ? ' ' : '', name, backlink_text])
456
+ para.children << Element.new(:raw, FOOTNOTE_BACKLINK_FMT % [insert_space ? '&nbsp;' : '', name, backlink_text])
457
457
  (1..repeat).each do |index|
458
- para.children << Element.new(:raw, FOOTNOTE_BACKLINK_FMT % [" ", "#{name}:#{index}", "#{backlink_text}<sup>#{index+1}</sup>"])
458
+ para.children << Element.new(:raw, FOOTNOTE_BACKLINK_FMT % ["&nbsp;", "#{name}:#{index}", "#{backlink_text}<sup>#{index+1}</sup>"])
459
459
  end
460
460
  end
461
461
 
@@ -91,6 +91,11 @@ module Kramdown
91
91
  correct_abbreviations_attributes
92
92
  replace_abbreviations(@root)
93
93
  @footnotes.each {|name,data| update_tree(data[:content])}
94
+ @footnotes.each do |name, data|
95
+ next if data.key?(:marker)
96
+ line = data[:content].options[:location]
97
+ warning("Footnote definition for '#{name}' on line #{line} is unreferenced - ignoring")
98
+ end
94
99
  end
95
100
 
96
101
  #######
@@ -10,6 +10,6 @@
10
10
  module Kramdown
11
11
 
12
12
  # The kramdown version.
13
- VERSION = '1.13.1'
13
+ VERSION = '1.13.2'
14
14
 
15
15
  end
@@ -396,7 +396,7 @@ class TestFiles < Minitest::Test
396
396
  if old.value.kind_of?(Kramdown::Element)
397
397
  assert_tree_not_changed(old.value, new.value)
398
398
  else
399
- assert_equal(old.value, new.value, "value mismatch")
399
+ assert(old.value == new.value, "value mismatch")
400
400
  end
401
401
  assert_equal(old.attr, new.attr, "attr mismatch")
402
402
  assert_equal(old.options, new.options, "options mismatch")
@@ -15,7 +15,7 @@ some <span>*para*</span>
15
15
  <div class="footnotes">
16
16
  <ol start="10">
17
17
  <li id="fn:ab">
18
- <p>Some text. <a href="#fnref:ab" class="reversefootnote">&#8617;</a></p>
18
+ <p>Some text.&nbsp;<a href="#fnref:ab" class="reversefootnote">&#8617;</a></p>
19
19
  </li>
20
20
  </ol>
21
21
  </div>
@@ -4,7 +4,7 @@
4
4
  <div class="footnotes">
5
5
  <ol>
6
6
  <li id="fn:ab">
7
- <p>Some text. <a href="#fnref:ab" class="reversefootnote">&#8617;</a></p>
7
+ <p>Some text.&nbsp;<a href="#fnref:ab" class="reversefootnote">&#8617;</a></p>
8
8
  </li>
9
9
  </ol>
10
10
  </div>
@@ -7,7 +7,7 @@
7
7
  <div class="footnotes">
8
8
  <ol>
9
9
  <li id="fn:1">
10
- <p>Some footnote content here <a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
10
+ <p>Some footnote content here&nbsp;<a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
11
11
  </li>
12
12
  </ol>
13
13
  </div>
@@ -3,7 +3,7 @@
3
3
  <div class="footnotes">
4
4
  <ol>
5
5
  <li id="fn:fn">
6
- <p>Some text here <a href="#fnref:fn" class="reversefootnote">text &8617; &lt;img /&gt;</a></p>
6
+ <p>Some text here&nbsp;<a href="#fnref:fn" class="reversefootnote">text &8617; &lt;img /&gt;</a></p>
7
7
  </li>
8
8
  </ol>
9
9
  </div>
@@ -3,10 +3,10 @@
3
3
  <div class="footnotes">
4
4
  <ol start="35">
5
5
  <li id="fn:ab">
6
- <p>Some text. <a href="#fnref:ab" class="reversefootnote">&#8617;</a></p>
6
+ <p>Some text.&nbsp;<a href="#fnref:ab" class="reversefootnote">&#8617;</a></p>
7
7
  </li>
8
8
  <li id="fn:bc">
9
- <p>Some other text. <a href="#fnref:bc" class="reversefootnote">&#8617;</a></p>
9
+ <p>Some other text.&nbsp;<a href="#fnref:bc" class="reversefootnote">&#8617;</a></p>
10
10
  </li>
11
11
  </ol>
12
12
  </div>
@@ -5,13 +5,13 @@
5
5
  <div class="footnotes">
6
6
  <ol>
7
7
  <li id="fn:first">
8
- <p>Consecutur adisping.<sup id="fnref:third"><a href="#fn:third" class="footnote">3</a></sup> <a href="#fnref:first" class="reversefootnote">&#8617;</a></p>
8
+ <p>Consecutur adisping.<sup id="fnref:third"><a href="#fn:third" class="footnote">3</a></sup>&nbsp;<a href="#fnref:first" class="reversefootnote">&#8617;</a></p>
9
9
  </li>
10
10
  <li id="fn:second">
11
- <p>Sed ut perspiciatis unde omnis. <a href="#fnref:second" class="reversefootnote">&#8617;</a></p>
11
+ <p>Sed ut perspiciatis unde omnis.&nbsp;<a href="#fnref:second" class="reversefootnote">&#8617;</a></p>
12
12
  </li>
13
13
  <li id="fn:third">
14
- <p>Sed ut. <a href="#fnref:third" class="reversefootnote">&#8617;</a></p>
14
+ <p>Sed ut.&nbsp;<a href="#fnref:third" class="reversefootnote">&#8617;</a></p>
15
15
  </li>
16
16
  </ol>
17
17
  </div>
@@ -17,7 +17,7 @@
17
17
  <div class="footnotes">
18
18
  <ol>
19
19
  <li id="fn:fn">
20
- <p>Some foot note text <a href="#fnref:fn" class="reversefootnote">&#8617;</a> <a href="#fnref:fn:1" class="reversefootnote">&#8617;<sup>2</sup></a> <a href="#fnref:fn:2" class="reversefootnote">&#8617;<sup>3</sup></a></p>
20
+ <p>Some foot note text&nbsp;<a href="#fnref:fn" class="reversefootnote">&#8617;</a>&nbsp;<a href="#fnref:fn:1" class="reversefootnote">&#8617;<sup>2</sup></a>&nbsp;<a href="#fnref:fn:2" class="reversefootnote">&#8617;<sup>3</sup></a></p>
21
21
  </li>
22
22
  <li id="fn:3">
23
23
  <p>other text
@@ -29,7 +29,7 @@ with more lines</p>
29
29
  <p><a href="#fnref:3" class="reversefootnote">&#8617;</a></p>
30
30
  </li>
31
31
  <li id="fn:1">
32
- <p>some <em>text</em> <a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
32
+ <p>some <em>text</em>&nbsp;<a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
33
33
  </li>
34
34
  <li id="fn:now">
35
35
 
@@ -1,7 +1,7 @@
1
1
  <div class="footnotes">
2
2
  <ol>
3
3
  <li id="fn:1">
4
- <p>Footnote \` text <a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
4
+ <p>Footnote \` text&nbsp;<a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
5
5
  </li>
6
6
  </ol>
7
7
  </div>
@@ -8,7 +8,7 @@
8
8
  <ol>
9
9
  <li id="fn:note1">
10
10
 
11
- <p>A note <a href="#fnref:note1" class="reversefootnote">&#8617;</a></p>
11
+ <p>A note&nbsp;<a href="#fnref:note1" class="reversefootnote">&#8617;</a></p>
12
12
  </li>
13
13
  </ol>
14
14
  </div>
@@ -18,7 +18,7 @@
18
18
 
19
19
  <h3 id="with-code">with <code>code</code></h3>
20
20
 
21
- <h3 id="with-space">with &nbsp;&Auml;&nbsp;space</h3>
21
+ <h3 id="with-space">with &nbsp;&auml;&nbsp;space</h3>
22
22
 
23
23
  <h3 id="with-smart-quotes">With &#8220;smart&#8221; quotes</h3>
24
24
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  <h3 id="with-code">with <code>code</code></h3>
20
20
 
21
- <h3 id="withspace">with  Ä space</h3>
21
+ <h3 id="withspace">with  ä space</h3>
22
22
 
23
23
  <h3 id="with-smart-quotes">With “smart” quotes</h3>
24
24
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  ### with `code`
20
20
 
21
- ### with &nbsp;&Auml;&nbsp;space
21
+ ### with &nbsp;&auml;&nbsp;space
22
22
 
23
23
  ### With "smart" quotes
24
24
 
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.13.1
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Leitner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-25 00:00:00.000000000 Z
11
+ date: 2017-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -772,7 +772,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
772
772
  version: '0'
773
773
  requirements: []
774
774
  rubyforge_project:
775
- rubygems_version: 2.5.1
775
+ rubygems_version: 2.6.8
776
776
  signing_key:
777
777
  specification_version: 4
778
778
  summary: kramdown is a fast, pure-Ruby Markdown-superset converter.