kramdown 2.1.0 → 2.2.0
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 +11 -3
- data/VERSION +1 -1
- data/lib/kramdown/converter/base.rb +2 -1
- data/lib/kramdown/converter/html.rb +22 -14
- data/lib/kramdown/converter/kramdown.rb +9 -4
- data/lib/kramdown/converter/math_engine/mathjax.rb +7 -33
- data/lib/kramdown/converter/syntax_highlighter.rb +1 -1
- data/lib/kramdown/element.rb +16 -0
- data/lib/kramdown/options.rb +35 -8
- data/lib/kramdown/parser/base.rb +3 -1
- data/lib/kramdown/parser/html.rb +8 -8
- data/lib/kramdown/parser/kramdown.rb +8 -1
- data/lib/kramdown/parser/kramdown/autolink.rb +2 -2
- data/lib/kramdown/parser/kramdown/codespan.rb +12 -2
- data/lib/kramdown/parser/kramdown/emphasis.rb +1 -1
- data/lib/kramdown/parser/kramdown/header.rb +1 -1
- data/lib/kramdown/parser/kramdown/html.rb +2 -2
- data/lib/kramdown/parser/kramdown/list.rb +36 -9
- data/lib/kramdown/parser/kramdown/math.rb +1 -1
- data/lib/kramdown/parser/kramdown/table.rb +2 -2
- data/lib/kramdown/utils/html.rb +7 -0
- data/lib/kramdown/version.rb +1 -1
- data/man/man1/kramdown.1 +7 -0
- data/test/test_files.rb +12 -11
- data/test/testcases/block/04_header/atx_header.html +6 -0
- data/test/testcases/block/04_header/atx_header.text +6 -0
- data/test/testcases/block/09_html/standalone_image_in_div.htmlinput +7 -0
- data/test/testcases/block/09_html/standalone_image_in_div.text +8 -0
- data/test/testcases/block/12_extension/options.html +4 -4
- data/test/testcases/block/12_extension/options2.html +4 -4
- data/test/testcases/block/14_table/table_with_footnote.html +4 -4
- data/test/testcases/block/15_math/gh_128.html +1 -2
- data/test/testcases/block/15_math/normal.html +16 -15
- data/test/testcases/block/16_toc/toc_exclude.html +1 -1
- data/test/testcases/block/16_toc/toc_levels.html +1 -1
- data/test/testcases/block/16_toc/toc_with_footnotes.html +5 -5
- data/test/testcases/block/16_toc/toc_with_links.html +1 -1
- data/test/testcases/cjk-line-break.html +4 -0
- data/test/testcases/cjk-line-break.options +1 -0
- data/test/testcases/cjk-line-break.text +12 -0
- data/test/testcases/span/02_emphasis/normal.html +4 -0
- data/test/testcases/span/02_emphasis/normal.text +4 -0
- data/test/testcases/span/04_footnote/backlink_inline.html +21 -21
- data/test/testcases/span/04_footnote/backlink_text.html +4 -4
- data/test/testcases/span/04_footnote/footnote_nr.html +6 -6
- data/test/testcases/span/04_footnote/footnote_prefix.html +6 -6
- data/test/testcases/span/04_footnote/inside_footnote.html +9 -9
- data/test/testcases/span/04_footnote/markers.html +16 -16
- data/test/testcases/span/04_footnote/placement.html +4 -4
- data/test/testcases/span/04_footnote/regexp_problem.html +4 -4
- data/test/testcases/span/04_footnote/without_backlink.html +3 -3
- data/test/testcases/span/abbreviations/in_footnote.html +4 -4
- data/test/testcases/span/math/normal.html +4 -4
- metadata +22 -13
- data/test/testcases/block/15_math/mathjax_preview.html +0 -4
- data/test/testcases/block/15_math/mathjax_preview.options +0 -2
- data/test/testcases/block/15_math/mathjax_preview.text +0 -5
- data/test/testcases/block/15_math/mathjax_preview_as_code.html +0 -4
- data/test/testcases/block/15_math/mathjax_preview_as_code.options +0 -3
- data/test/testcases/block/15_math/mathjax_preview_as_code.text +0 -5
- data/test/testcases/block/15_math/mathjax_preview_simple.html +0 -4
- data/test/testcases/block/15_math/mathjax_preview_simple.options +0 -2
- data/test/testcases/block/15_math/mathjax_preview_simple.text +0 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
<h1 class="no_toc" id="contents">Contents</h1>
|
2
2
|
|
3
|
-
<ul id="markdown-toc">
|
3
|
+
<ul id="markdown-toc" role="doc-toc">
|
4
4
|
<li><a href="#header-level-1" id="markdown-toc-header-level-1">Header level 1</a> <ul>
|
5
5
|
<li><a href="#header-level-2" id="markdown-toc-header-level-2">Header level 2</a> <ul>
|
6
6
|
<li><a href="#header-level-3" id="markdown-toc-header-level-3">Header level 3</a> <ul>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<ul id="markdown-toc">
|
1
|
+
<ul id="markdown-toc" role="doc-toc">
|
2
2
|
<li><a href="#header1-level-1" id="markdown-toc-header1-level-1">Header level 1</a></li>
|
3
3
|
</ul>
|
4
4
|
|
5
|
-
<h1 id="header1-level-1">Header<sup id="fnref:1"><a href="#fn:1" class="footnote">1</a></sup> level 1</h1>
|
5
|
+
<h1 id="header1-level-1">Header<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">1</a></sup> level 1</h1>
|
6
6
|
|
7
|
-
<div class="footnotes">
|
7
|
+
<div class="footnotes" role="doc-endnotes">
|
8
8
|
<ol>
|
9
|
-
<li id="fn:1">
|
10
|
-
<p>Some footnote content here <a href="#fnref:1" class="reversefootnote">↩</a></p>
|
9
|
+
<li id="fn:1" role="doc-endnote">
|
10
|
+
<p>Some footnote content here <a href="#fnref:1" class="reversefootnote" role="doc-backlink">↩</a></p>
|
11
11
|
</li>
|
12
12
|
</ol>
|
13
13
|
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
:remove_line_breaks_for_cjk: true
|
@@ -1,30 +1,30 @@
|
|
1
|
-
<p>This is <sup id="fnref:paragraph"><a href="#fn:paragraph" class="footnote">1</a></sup><sup id="fnref:header"><a href="#fn:header" class="footnote">2</a></sup><sup id="fnref:blockquote"><a href="#fn:blockquote" class="footnote">3</a></sup><sup id="fnref:codeblock"><a href="#fn:codeblock" class="footnote">4</a></sup><sup id="fnref:list"><a href="#fn:list" class="footnote">5</a></sup><sup id="fnref:table"><a href="#fn:table" class="footnote">6</a></sup><sup id="fnref:hrule"><a href="#fn:hrule" class="footnote">7</a></sup><sup id="fnref:mathblock"><a href="#fn:mathblock" class="footnote">8</a></sup><sup id="fnref:html"><a href="#fn:html" class="footnote">9</a></sup></p>
|
1
|
+
<p>This is <sup id="fnref:paragraph" role="doc-noteref"><a href="#fn:paragraph" class="footnote">1</a></sup><sup id="fnref:header" role="doc-noteref"><a href="#fn:header" class="footnote">2</a></sup><sup id="fnref:blockquote" role="doc-noteref"><a href="#fn:blockquote" class="footnote">3</a></sup><sup id="fnref:codeblock" role="doc-noteref"><a href="#fn:codeblock" class="footnote">4</a></sup><sup id="fnref:list" role="doc-noteref"><a href="#fn:list" class="footnote">5</a></sup><sup id="fnref:table" role="doc-noteref"><a href="#fn:table" class="footnote">6</a></sup><sup id="fnref:hrule" role="doc-noteref"><a href="#fn:hrule" class="footnote">7</a></sup><sup id="fnref:mathblock" role="doc-noteref"><a href="#fn:mathblock" class="footnote">8</a></sup><sup id="fnref:html" role="doc-noteref"><a href="#fn:html" class="footnote">9</a></sup></p>
|
2
2
|
|
3
|
-
<div class="footnotes">
|
3
|
+
<div class="footnotes" role="doc-endnotes">
|
4
4
|
<ol>
|
5
|
-
<li id="fn:paragraph">
|
5
|
+
<li id="fn:paragraph" role="doc-endnote">
|
6
6
|
|
7
|
-
<p>A paragraph <a href="#fnref:paragraph" class="reversefootnote">↩</a></p>
|
7
|
+
<p>A paragraph <a href="#fnref:paragraph" class="reversefootnote" role="doc-backlink">↩</a></p>
|
8
8
|
</li>
|
9
|
-
<li id="fn:header">
|
9
|
+
<li id="fn:header" role="doc-endnote">
|
10
10
|
|
11
|
-
<h1 id="a-header">A header <a href="#fnref:header" class="reversefootnote">↩</a></h1>
|
11
|
+
<h1 id="a-header">A header <a href="#fnref:header" class="reversefootnote" role="doc-backlink">↩</a></h1>
|
12
12
|
</li>
|
13
|
-
<li id="fn:blockquote">
|
13
|
+
<li id="fn:blockquote" role="doc-endnote">
|
14
14
|
|
15
15
|
<blockquote>
|
16
16
|
<p>blockquote</p>
|
17
17
|
|
18
|
-
<p>paragraph <a href="#fnref:blockquote" class="reversefootnote">↩</a></p>
|
18
|
+
<p>paragraph <a href="#fnref:blockquote" class="reversefootnote" role="doc-backlink">↩</a></p>
|
19
19
|
</blockquote>
|
20
20
|
</li>
|
21
|
-
<li id="fn:codeblock">
|
21
|
+
<li id="fn:codeblock" role="doc-endnote">
|
22
22
|
|
23
23
|
<pre><code>codeblock
|
24
24
|
</code></pre>
|
25
|
-
<p><a href="#fnref:codeblock" class="reversefootnote">↩</a></p>
|
25
|
+
<p><a href="#fnref:codeblock" class="reversefootnote" role="doc-backlink">↩</a></p>
|
26
26
|
</li>
|
27
|
-
<li id="fn:list">
|
27
|
+
<li id="fn:list" role="doc-endnote">
|
28
28
|
|
29
29
|
<ul>
|
30
30
|
<li>item 1</li>
|
@@ -36,14 +36,14 @@
|
|
36
36
|
<blockquote>
|
37
37
|
<p>blockquote</p>
|
38
38
|
|
39
|
-
<h1 id="header">header <a href="#fnref:list" class="reversefootnote">↩</a></h1>
|
39
|
+
<h1 id="header">header <a href="#fnref:list" class="reversefootnote" role="doc-backlink">↩</a></h1>
|
40
40
|
</blockquote>
|
41
41
|
</li>
|
42
42
|
</ul>
|
43
43
|
</li>
|
44
44
|
</ul>
|
45
45
|
</li>
|
46
|
-
<li id="fn:table">
|
46
|
+
<li id="fn:table" role="doc-endnote">
|
47
47
|
|
48
48
|
<table>
|
49
49
|
<tbody>
|
@@ -57,23 +57,23 @@
|
|
57
57
|
</tr>
|
58
58
|
</tbody>
|
59
59
|
</table>
|
60
|
-
<p><a href="#fnref:table" class="reversefootnote">↩</a></p>
|
60
|
+
<p><a href="#fnref:table" class="reversefootnote" role="doc-backlink">↩</a></p>
|
61
61
|
</li>
|
62
|
-
<li id="fn:hrule">
|
62
|
+
<li id="fn:hrule" role="doc-endnote">
|
63
63
|
|
64
64
|
<hr />
|
65
|
-
<p><a href="#fnref:hrule" class="reversefootnote">↩</a></p>
|
65
|
+
<p><a href="#fnref:hrule" class="reversefootnote" role="doc-backlink">↩</a></p>
|
66
66
|
</li>
|
67
|
-
<li id="fn:mathblock">
|
67
|
+
<li id="fn:mathblock" role="doc-endnote">
|
68
68
|
|
69
|
-
|
70
|
-
<p><a href="#fnref:mathblock" class="reversefootnote">↩</a></p>
|
69
|
+
\[x + 2\]
|
70
|
+
<p><a href="#fnref:mathblock" class="reversefootnote" role="doc-backlink">↩</a></p>
|
71
71
|
</li>
|
72
|
-
<li id="fn:html">
|
72
|
+
<li id="fn:html" role="doc-endnote">
|
73
73
|
|
74
74
|
<div>test
|
75
75
|
</div>
|
76
|
-
<p><a href="#fnref:html" class="reversefootnote">↩</a></p>
|
76
|
+
<p><a href="#fnref:html" class="reversefootnote" role="doc-backlink">↩</a></p>
|
77
77
|
</li>
|
78
78
|
</ol>
|
79
79
|
</div>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<p>Some footnote here<sup id="fnref:fn"><a href="#fn:fn" class="footnote">1</a></sup></p>
|
1
|
+
<p>Some footnote here<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup></p>
|
2
2
|
|
3
|
-
<div class="footnotes">
|
3
|
+
<div class="footnotes" role="doc-endnotes">
|
4
4
|
<ol>
|
5
|
-
<li id="fn:fn">
|
6
|
-
<p>Some text here <a href="#fnref:fn" class="reversefootnote">text &8617; <img /></a></p>
|
5
|
+
<li id="fn:fn" role="doc-endnote">
|
6
|
+
<p>Some text here <a href="#fnref:fn" class="reversefootnote" role="doc-backlink">text &8617; <img /></a></p>
|
7
7
|
</li>
|
8
8
|
</ol>
|
9
9
|
</div>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<p>This is a footnote<sup id="fnref:ab"><a href="#fn:ab" class="footnote">35</a></sup>. And another<sup id="fnref:bc"><a href="#fn:bc" class="footnote">36</a></sup>.</p>
|
1
|
+
<p>This is a footnote<sup id="fnref:ab" role="doc-noteref"><a href="#fn:ab" class="footnote">35</a></sup>. And another<sup id="fnref:bc" role="doc-noteref"><a href="#fn:bc" class="footnote">36</a></sup>.</p>
|
2
2
|
|
3
|
-
<div class="footnotes">
|
3
|
+
<div class="footnotes" role="doc-endnotes">
|
4
4
|
<ol start="35">
|
5
|
-
<li id="fn:ab">
|
6
|
-
<p>Some text. <a href="#fnref:ab" class="reversefootnote">↩</a></p>
|
5
|
+
<li id="fn:ab" role="doc-endnote">
|
6
|
+
<p>Some text. <a href="#fnref:ab" class="reversefootnote" role="doc-backlink">↩</a></p>
|
7
7
|
</li>
|
8
|
-
<li id="fn:bc">
|
9
|
-
<p>Some other text. <a href="#fnref:bc" class="reversefootnote">↩</a></p>
|
8
|
+
<li id="fn:bc" role="doc-endnote">
|
9
|
+
<p>Some other text. <a href="#fnref:bc" class="reversefootnote" role="doc-backlink">↩</a></p>
|
10
10
|
</li>
|
11
11
|
</ol>
|
12
12
|
</div>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<p>This is a<sup id="fnref:adf123-ab"><a href="#fn:adf123-ab" class="footnote">1</a></sup> footnote<sup id="fnref:adf123-ab:1"><a href="#fn:adf123-ab" class="footnote">1</a></sup>. And another<sup id="fnref:adf123-bc"><a href="#fn:adf123-bc" class="footnote">2</a></sup>.</p>
|
1
|
+
<p>This is a<sup id="fnref:adf123-ab" role="doc-noteref"><a href="#fn:adf123-ab" class="footnote">1</a></sup> footnote<sup id="fnref:adf123-ab:1" role="doc-noteref"><a href="#fn:adf123-ab" class="footnote">1</a></sup>. And another<sup id="fnref:adf123-bc" role="doc-noteref"><a href="#fn:adf123-bc" class="footnote">2</a></sup>.</p>
|
2
2
|
|
3
|
-
<div class="footnotes">
|
3
|
+
<div class="footnotes" role="doc-endnotes">
|
4
4
|
<ol>
|
5
|
-
<li id="fn:adf123-ab">
|
6
|
-
<p>Some text. <a href="#fnref:adf123-ab" class="reversefootnote">↩</a> <a href="#fnref:adf123-ab:1" class="reversefootnote">↩<sup>2</sup></a></p>
|
5
|
+
<li id="fn:adf123-ab" role="doc-endnote">
|
6
|
+
<p>Some text. <a href="#fnref:adf123-ab" class="reversefootnote" role="doc-backlink">↩</a> <a href="#fnref:adf123-ab:1" class="reversefootnote" role="doc-backlink">↩<sup>2</sup></a></p>
|
7
7
|
</li>
|
8
|
-
<li id="fn:adf123-bc">
|
9
|
-
<p>Some other text. <a href="#fnref:adf123-bc" class="reversefootnote">↩</a></p>
|
8
|
+
<li id="fn:adf123-bc" role="doc-endnote">
|
9
|
+
<p>Some other text. <a href="#fnref:adf123-bc" class="reversefootnote" role="doc-backlink">↩</a></p>
|
10
10
|
</li>
|
11
11
|
</ol>
|
12
12
|
</div>
|
@@ -1,17 +1,17 @@
|
|
1
|
-
<p>Lorem ipsum<sup id="fnref:first"><a href="#fn:first" class="footnote">1</a></sup> dolor sit amet.</p>
|
1
|
+
<p>Lorem ipsum<sup id="fnref:first" role="doc-noteref"><a href="#fn:first" class="footnote">1</a></sup> dolor sit amet.</p>
|
2
2
|
|
3
|
-
<p>Lorem ipsum<sup id="fnref:second"><a href="#fn:second" class="footnote">2</a></sup> dolor sit amet.</p>
|
3
|
+
<p>Lorem ipsum<sup id="fnref:second" role="doc-noteref"><a href="#fn:second" class="footnote">2</a></sup> dolor sit amet.</p>
|
4
4
|
|
5
|
-
<div class="footnotes">
|
5
|
+
<div class="footnotes" role="doc-endnotes">
|
6
6
|
<ol>
|
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">↩</a></p>
|
7
|
+
<li id="fn:first" role="doc-endnote">
|
8
|
+
<p>Consecutur adisping.<sup id="fnref:third" role="doc-noteref"><a href="#fn:third" class="footnote">3</a></sup> <a href="#fnref:first" class="reversefootnote" role="doc-backlink">↩</a></p>
|
9
9
|
</li>
|
10
|
-
<li id="fn:second">
|
11
|
-
<p>Sed ut perspiciatis unde omnis. <a href="#fnref:second" class="reversefootnote">↩</a></p>
|
10
|
+
<li id="fn:second" role="doc-endnote">
|
11
|
+
<p>Sed ut perspiciatis unde omnis. <a href="#fnref:second" class="reversefootnote" role="doc-backlink">↩</a></p>
|
12
12
|
</li>
|
13
|
-
<li id="fn:third">
|
14
|
-
<p>Sed ut. <a href="#fnref:third" class="reversefootnote">↩</a></p>
|
13
|
+
<li id="fn:third" role="doc-endnote">
|
14
|
+
<p>Sed ut. <a href="#fnref:third" class="reversefootnote" role="doc-backlink">↩</a></p>
|
15
15
|
</li>
|
16
16
|
</ol>
|
17
17
|
</div>
|
@@ -1,46 +1,46 @@
|
|
1
|
-
<p>This is some *ref.<sup id="fnref:fn"><a href="#fn:fn" class="footnote">1</a></sup></p>
|
1
|
+
<p>This is some *ref.<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup></p>
|
2
2
|
|
3
3
|
<blockquote>
|
4
|
-
<p>a blockquote <sup id="fnref:3"><a href="#fn:3" class="footnote">2</a></sup></p>
|
4
|
+
<p>a blockquote <sup id="fnref:3" role="doc-noteref"><a href="#fn:3" class="footnote">2</a></sup></p>
|
5
5
|
</blockquote>
|
6
6
|
|
7
7
|
<ul>
|
8
|
-
<li>and a list item <sup id="fnref:1"><a href="#fn:1" class="footnote">3</a></sup></li>
|
8
|
+
<li>and a list item <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">3</a></sup></li>
|
9
9
|
</ul>
|
10
10
|
|
11
|
-
<h1>And a header<sup id="fnref:now"><a href="#fn:now" class="footnote">4</a></sup></h1>
|
11
|
+
<h1>And a header<sup id="fnref:now" role="doc-noteref"><a href="#fn:now" class="footnote">4</a></sup></h1>
|
12
12
|
|
13
13
|
<p>A marker without a definition [^without].</p>
|
14
14
|
|
15
|
-
<p>A marker <sup id="fnref:empty"><a href="#fn:empty" class="footnote">5</a></sup> used twice<sup id="fnref:fn:1"><a href="#fn:fn" class="footnote">1</a></sup> and thrice<sup id="fnref:fn:2"><a href="#fn:fn" class="footnote">1</a></sup>.</p>
|
15
|
+
<p>A marker <sup id="fnref:empty" role="doc-noteref"><a href="#fn:empty" class="footnote">5</a></sup> used twice<sup id="fnref:fn:1" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup> and thrice<sup id="fnref:fn:2" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup>.</p>
|
16
16
|
|
17
|
-
<div class="footnotes">
|
17
|
+
<div class="footnotes" role="doc-endnotes">
|
18
18
|
<ol>
|
19
|
-
<li id="fn:fn">
|
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>
|
19
|
+
<li id="fn:fn" role="doc-endnote">
|
20
|
+
<p>Some foot note text <a href="#fnref:fn" class="reversefootnote" role="doc-backlink">↩</a> <a href="#fnref:fn:1" class="reversefootnote" role="doc-backlink">↩<sup>2</sup></a> <a href="#fnref:fn:2" class="reversefootnote" role="doc-backlink">↩<sup>3</sup></a></p>
|
21
21
|
</li>
|
22
|
-
<li id="fn:3">
|
22
|
+
<li id="fn:3" role="doc-endnote">
|
23
23
|
<p>other text
|
24
24
|
with more lines</p>
|
25
25
|
|
26
26
|
<blockquote>
|
27
27
|
<p>and a quote</p>
|
28
28
|
</blockquote>
|
29
|
-
<p><a href="#fnref:3" class="reversefootnote">↩</a></p>
|
29
|
+
<p><a href="#fnref:3" class="reversefootnote" role="doc-backlink">↩</a></p>
|
30
30
|
</li>
|
31
|
-
<li id="fn:1">
|
32
|
-
<p>some <em>text</em> <a href="#fnref:1" class="reversefootnote">↩</a></p>
|
31
|
+
<li id="fn:1" role="doc-endnote">
|
32
|
+
<p>some <em>text</em> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">↩</a></p>
|
33
33
|
</li>
|
34
|
-
<li id="fn:now">
|
34
|
+
<li id="fn:now" role="doc-endnote">
|
35
35
|
|
36
36
|
<pre><code>code block
|
37
37
|
continued here
|
38
38
|
</code></pre>
|
39
|
-
<p><a href="#fnref:now" class="reversefootnote">↩</a></p>
|
39
|
+
<p><a href="#fnref:now" class="reversefootnote" role="doc-backlink">↩</a></p>
|
40
40
|
</li>
|
41
|
-
<li id="fn:empty">
|
41
|
+
<li id="fn:empty" role="doc-endnote">
|
42
42
|
|
43
|
-
<p><a href="#fnref:empty" class="reversefootnote">↩</a></p>
|
43
|
+
<p><a href="#fnref:empty" class="reversefootnote" role="doc-backlink">↩</a></p>
|
44
44
|
</li>
|
45
45
|
</ol>
|
46
46
|
</div>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<div class="footnotes">
|
1
|
+
<div class="footnotes" role="doc-endnotes">
|
2
2
|
<ol>
|
3
|
-
<li id="fn:1">
|
4
|
-
<p>Footnote \` text <a href="#fnref:1" class="reversefootnote">↩</a></p>
|
3
|
+
<li id="fn:1" role="doc-endnote">
|
4
|
+
<p>Footnote \` text <a href="#fnref:1" class="reversefootnote" role="doc-backlink">↩</a></p>
|
5
5
|
</li>
|
6
6
|
</ol>
|
7
7
|
</div>
|
8
8
|
|
9
|
-
<p>Some para with a<sup id="fnref:1"><a href="#fn:1" class="footnote">1</a></sup> footnote.</p>
|
9
|
+
<p>Some para with a<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">1</a></sup> footnote.</p>
|
10
10
|
|
11
11
|
<p>And another para.</p>
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<h1>Something</h1>
|
2
|
-
<p>something<sup id="fnref:note1"><a href="#fn:note1" class="footnote">1</a></sup>.</p>
|
2
|
+
<p>something<sup id="fnref:note1" role="doc-noteref"><a href="#fn:note1" class="footnote">1</a></sup>.</p>
|
3
3
|
|
4
4
|
<h1>Footnotes</h1>
|
5
5
|
|
6
6
|
<h1>Test</h1>
|
7
|
-
<div class="footnotes">
|
7
|
+
<div class="footnotes" role="doc-endnotes">
|
8
8
|
<ol>
|
9
|
-
<li id="fn:note1">
|
9
|
+
<li id="fn:note1" role="doc-endnote">
|
10
10
|
|
11
|
-
<p>A note <a href="#fnref:note1" class="reversefootnote">↩</a></p>
|
11
|
+
<p>A note <a href="#fnref:note1" class="reversefootnote" role="doc-backlink">↩</a></p>
|
12
12
|
</li>
|
13
13
|
</ol>
|
14
14
|
</div>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<p>Some footnote here<sup id="fnref:fn"><a href="#fn:fn" class="footnote">1</a></sup></p>
|
1
|
+
<p>Some footnote here<sup id="fnref:fn" role="doc-noteref"><a href="#fn:fn" class="footnote">1</a></sup></p>
|
2
2
|
|
3
|
-
<div class="footnotes">
|
3
|
+
<div class="footnotes" role="doc-endnotes">
|
4
4
|
<ol>
|
5
|
-
<li id="fn:fn">
|
5
|
+
<li id="fn:fn" role="doc-endnote">
|
6
6
|
<p>Some text here</p>
|
7
7
|
</li>
|
8
8
|
</ol>
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<p>There is a <abbr title="Text File">TXT</abbr> file here. <sup id="fnref:1"><a href="#fn:1" class="footnote">1</a></sup></p>
|
1
|
+
<p>There is a <abbr title="Text File">TXT</abbr> file here. <sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote">1</a></sup></p>
|
2
2
|
|
3
|
-
<div class="footnotes">
|
3
|
+
<div class="footnotes" role="doc-endnotes">
|
4
4
|
<ol>
|
5
|
-
<li id="fn:1">
|
6
|
-
<p>A <abbr title="Text File">TXT</abbr> file. <a href="#fnref:1" class="reversefootnote">↩</a></p>
|
5
|
+
<li id="fn:1" role="doc-endnote">
|
6
|
+
<p>A <abbr title="Text File">TXT</abbr> file. <a href="#fnref:1" class="reversefootnote" role="doc-backlink">↩</a></p>
|
7
7
|
</li>
|
8
8
|
</ol>
|
9
9
|
</div>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<p>This is
|
2
|
-
+ 1
|
1
|
+
<p>This is \(\lambda_\alpha > 5\) some math. With \(1
|
2
|
+
+ 1\) new line characters in between.</p>
|
3
3
|
|
4
|
-
<p
|
4
|
+
<p>\(5+5\) inline math, $5.00 $$no math$$</p>
|
5
5
|
|
6
6
|
<p>$$5+5$$ inline math</p>
|
7
7
|
|
8
|
-
<p
|
8
|
+
<p>\(5+5\)</p>
|
9
9
|
|
10
10
|
<p>$$5+5$$</p>
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
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: 2020-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rexml
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: minitest
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -350,6 +364,8 @@ files:
|
|
350
364
|
- test/testcases/block/09_html/simple.html
|
351
365
|
- test/testcases/block/09_html/simple.options
|
352
366
|
- test/testcases/block/09_html/simple.text
|
367
|
+
- test/testcases/block/09_html/standalone_image_in_div.htmlinput
|
368
|
+
- test/testcases/block/09_html/standalone_image_in_div.text
|
353
369
|
- test/testcases/block/09_html/textarea.html
|
354
370
|
- test/testcases/block/09_html/textarea.text
|
355
371
|
- test/testcases/block/09_html/xml.html
|
@@ -421,15 +437,6 @@ files:
|
|
421
437
|
- test/testcases/block/14_table/table_with_footnote.text
|
422
438
|
- test/testcases/block/15_math/gh_128.html
|
423
439
|
- test/testcases/block/15_math/gh_128.text
|
424
|
-
- test/testcases/block/15_math/mathjax_preview.html
|
425
|
-
- test/testcases/block/15_math/mathjax_preview.options
|
426
|
-
- test/testcases/block/15_math/mathjax_preview.text
|
427
|
-
- test/testcases/block/15_math/mathjax_preview_as_code.html
|
428
|
-
- test/testcases/block/15_math/mathjax_preview_as_code.options
|
429
|
-
- test/testcases/block/15_math/mathjax_preview_as_code.text
|
430
|
-
- test/testcases/block/15_math/mathjax_preview_simple.html
|
431
|
-
- test/testcases/block/15_math/mathjax_preview_simple.options
|
432
|
-
- test/testcases/block/15_math/mathjax_preview_simple.text
|
433
440
|
- test/testcases/block/15_math/no_engine.html
|
434
441
|
- test/testcases/block/15_math/no_engine.options
|
435
442
|
- test/testcases/block/15_math/no_engine.text
|
@@ -449,6 +456,9 @@ files:
|
|
449
456
|
- test/testcases/block/16_toc/toc_with_links.html
|
450
457
|
- test/testcases/block/16_toc/toc_with_links.options
|
451
458
|
- test/testcases/block/16_toc/toc_with_links.text
|
459
|
+
- test/testcases/cjk-line-break.html
|
460
|
+
- test/testcases/cjk-line-break.options
|
461
|
+
- test/testcases/cjk-line-break.text
|
452
462
|
- test/testcases/encoding.html
|
453
463
|
- test/testcases/encoding.text
|
454
464
|
- test/testcases/man/example.man
|
@@ -641,8 +651,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
641
651
|
- !ruby/object:Gem::Version
|
642
652
|
version: '0'
|
643
653
|
requirements: []
|
644
|
-
|
645
|
-
rubygems_version: 2.7.3
|
654
|
+
rubygems_version: 3.0.3
|
646
655
|
signing_key:
|
647
656
|
specification_version: 4
|
648
657
|
summary: kramdown is a fast, pure-Ruby Markdown-superset converter.
|