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 +4 -4
- data/doc/default.template +7 -13
- data/doc/index.page +2 -2
- data/doc/sidebar.template +1 -1
- data/lib/kramdown/converter/html.rb +2 -2
- data/lib/kramdown/parser/kramdown.rb +5 -0
- data/lib/kramdown/version.rb +1 -1
- data/test/test_files.rb +1 -1
- data/test/testcases/block/12_extension/options.html +1 -1
- data/test/testcases/block/12_extension/options2.html +1 -1
- data/test/testcases/block/16_toc/toc_with_footnotes.html +1 -1
- data/test/testcases/span/04_footnote/backlink_text.html +1 -1
- data/test/testcases/span/04_footnote/footnote_nr.html +2 -2
- data/test/testcases/span/04_footnote/inside_footnote.html +3 -3
- data/test/testcases/span/04_footnote/markers.html +2 -2
- data/test/testcases/span/04_footnote/placement.html +1 -1
- data/test/testcases/span/04_footnote/regexp_problem.html +1 -1
- data/test/testcases_gfm/header_ids.html +1 -1
- data/test/testcases_gfm/header_ids.html.19 +1 -1
- data/test/testcases_gfm/header_ids.text +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ac24860921ac7d24babbeb2397b605667e526e6
|
4
|
+
data.tar.gz: de71ec32ce2b27eb011e80c1dfb24bf1f9e1298b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44277038c2e63576e706f7bdd2b9b993822c3fb092d4fcc6d866d9bf67b027c4aa9ddea79ea9ab4ba50e720f5bcda3c00b5dbaefd9f28d32adfee2d51fc1d5c6
|
7
|
+
data.tar.gz: e9e836ae44d96518f45597131b0cfce32eb987f824d5c6fa3ff8e5aa25fe3eadee5d150dfb7171c4f9d4aa6761d906f7619c5975f05800c832b511cfcbeeaf18
|
data/doc/default.template
CHANGED
@@ -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="
|
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
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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>
|
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.13.
|
101
|
-
**
|
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>
|
data/doc/sidebar.template
CHANGED
@@ -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='
|
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 ? '
|
456
|
+
para.children << Element.new(:raw, FOOTNOTE_BACKLINK_FMT % [insert_space ? ' ' : '', name, backlink_text])
|
457
457
|
(1..repeat).each do |index|
|
458
|
-
para.children << Element.new(:raw, FOOTNOTE_BACKLINK_FMT % ["
|
458
|
+
para.children << Element.new(:raw, FOOTNOTE_BACKLINK_FMT % [" ", "#{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
|
#######
|
data/lib/kramdown/version.rb
CHANGED
data/test/test_files.rb
CHANGED
@@ -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
|
-
|
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
|
18
|
+
<p>Some text. <a href="#fnref:ab" class="reversefootnote">↩</a></p>
|
19
19
|
</li>
|
20
20
|
</ol>
|
21
21
|
</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
|
10
|
+
<p>Some footnote content here <a href="#fnref:1" class="reversefootnote">↩</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
|
6
|
+
<p>Some text here <a href="#fnref:fn" class="reversefootnote">text &8617; <img /></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
|
6
|
+
<p>Some text. <a href="#fnref:ab" class="reversefootnote">↩</a></p>
|
7
7
|
</li>
|
8
8
|
<li id="fn:bc">
|
9
|
-
<p>Some other text
|
9
|
+
<p>Some other text. <a href="#fnref:bc" class="reversefootnote">↩</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
|
8
|
+
<p>Consecutur adisping.<sup id="fnref:third"><a href="#fn:third" class="footnote">3</a></sup> <a href="#fnref:first" class="reversefootnote">↩</a></p>
|
9
9
|
</li>
|
10
10
|
<li id="fn:second">
|
11
|
-
<p>Sed ut perspiciatis unde omnis
|
11
|
+
<p>Sed ut perspiciatis unde omnis. <a href="#fnref:second" class="reversefootnote">↩</a></p>
|
12
12
|
</li>
|
13
13
|
<li id="fn:third">
|
14
|
-
<p>Sed ut
|
14
|
+
<p>Sed ut. <a href="#fnref:third" class="reversefootnote">↩</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
|
20
|
+
<p>Some foot note text <a href="#fnref:fn" class="reversefootnote">↩</a> <a href="#fnref:fn:1" class="reversefootnote">↩<sup>2</sup></a> <a href="#fnref:fn:2" class="reversefootnote">↩<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">↩</a></p>
|
30
30
|
</li>
|
31
31
|
<li id="fn:1">
|
32
|
-
<p>some <em>text</em
|
32
|
+
<p>some <em>text</em> <a href="#fnref:1" class="reversefootnote">↩</a></p>
|
33
33
|
</li>
|
34
34
|
<li id="fn:now">
|
35
35
|
|
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.
|
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:
|
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.
|
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.
|