kramdown 2.0.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTERS +13 -3
  3. data/README.md +8 -2
  4. data/VERSION +1 -1
  5. data/bin/kramdown +48 -19
  6. data/lib/kramdown/converter/base.rb +2 -1
  7. data/lib/kramdown/converter/html.rb +36 -29
  8. data/lib/kramdown/converter/kramdown.rb +12 -7
  9. data/lib/kramdown/converter/latex.rb +2 -2
  10. data/lib/kramdown/converter/math_engine/mathjax.rb +7 -33
  11. data/lib/kramdown/converter/syntax_highlighter.rb +1 -1
  12. data/lib/kramdown/converter/syntax_highlighter/rouge.rb +20 -10
  13. data/lib/kramdown/element.rb +24 -0
  14. data/lib/kramdown/options.rb +53 -12
  15. data/lib/kramdown/parser/base.rb +3 -1
  16. data/lib/kramdown/parser/html.rb +8 -8
  17. data/lib/kramdown/parser/kramdown.rb +8 -1
  18. data/lib/kramdown/parser/kramdown/abbreviation.rb +1 -1
  19. data/lib/kramdown/parser/kramdown/autolink.rb +2 -2
  20. data/lib/kramdown/parser/kramdown/blank_line.rb +2 -2
  21. data/lib/kramdown/parser/kramdown/block_boundary.rb +3 -2
  22. data/lib/kramdown/parser/kramdown/codespan.rb +13 -3
  23. data/lib/kramdown/parser/kramdown/emphasis.rb +1 -1
  24. data/lib/kramdown/parser/kramdown/extensions.rb +13 -7
  25. data/lib/kramdown/parser/kramdown/header.rb +3 -2
  26. data/lib/kramdown/parser/kramdown/html.rb +4 -10
  27. data/lib/kramdown/parser/kramdown/link.rb +3 -2
  28. data/lib/kramdown/parser/kramdown/list.rb +64 -33
  29. data/lib/kramdown/parser/kramdown/math.rb +1 -1
  30. data/lib/kramdown/parser/kramdown/paragraph.rb +3 -3
  31. data/lib/kramdown/parser/kramdown/table.rb +3 -3
  32. data/lib/kramdown/utils/html.rb +9 -0
  33. data/lib/kramdown/version.rb +1 -1
  34. data/man/man1/kramdown.1 +22 -1
  35. data/test/test_files.rb +27 -18
  36. data/test/test_location.rb +2 -2
  37. data/test/test_string_scanner_kramdown.rb +1 -1
  38. data/test/testcases/block/03_paragraph/standalone_image.html +5 -0
  39. data/test/testcases/block/03_paragraph/standalone_image.text +3 -0
  40. data/test/testcases/block/04_header/atx_header.html +6 -0
  41. data/test/testcases/block/04_header/atx_header.text +6 -0
  42. data/test/testcases/block/06_codeblock/guess_lang_css_class.html +15 -0
  43. data/test/testcases/block/06_codeblock/guess_lang_css_class.options +2 -0
  44. data/test/testcases/block/06_codeblock/guess_lang_css_class.text +13 -0
  45. data/test/testcases/block/06_codeblock/rouge/multiple.html +1 -1
  46. data/test/testcases/block/06_codeblock/rouge/simple.html +1 -1
  47. data/test/testcases/block/09_html/processing_instruction.html +5 -6
  48. data/test/testcases/block/09_html/standalone_image_in_div.htmlinput +7 -0
  49. data/test/testcases/block/09_html/standalone_image_in_div.text +8 -0
  50. data/test/testcases/block/09_html/table.kramdown +8 -0
  51. data/test/testcases/block/09_html/table.text +7 -0
  52. data/test/testcases/block/12_extension/options.html +4 -4
  53. data/test/testcases/block/12_extension/options.text +2 -0
  54. data/test/testcases/block/12_extension/options2.html +4 -4
  55. data/test/testcases/block/14_table/table_with_footnote.html +4 -4
  56. data/test/testcases/block/15_math/gh_128.html +1 -2
  57. data/test/testcases/block/15_math/normal.html +16 -15
  58. data/test/testcases/block/16_toc/toc_with_footnotes.html +4 -4
  59. data/test/testcases/cjk-line-break.html +4 -0
  60. data/test/testcases/cjk-line-break.options +1 -0
  61. data/test/testcases/cjk-line-break.text +12 -0
  62. data/test/testcases/span/02_emphasis/normal.html +4 -0
  63. data/test/testcases/span/02_emphasis/normal.text +4 -0
  64. data/test/testcases/span/03_codespan/normal-css-class.html +1 -0
  65. data/test/testcases/span/03_codespan/normal-css-class.options +2 -0
  66. data/test/testcases/span/03_codespan/normal-css-class.text +1 -0
  67. data/test/testcases/span/03_codespan/normal.html +4 -0
  68. data/test/testcases/span/03_codespan/normal.text +4 -0
  69. data/test/testcases/span/04_footnote/backlink_inline.html +21 -21
  70. data/test/testcases/span/04_footnote/backlink_text.html +4 -4
  71. data/test/testcases/span/04_footnote/footnote_nr.html +6 -6
  72. data/test/testcases/span/04_footnote/footnote_prefix.html +6 -6
  73. data/test/testcases/span/04_footnote/inside_footnote.html +9 -9
  74. data/test/testcases/span/04_footnote/markers.html +16 -16
  75. data/test/testcases/span/04_footnote/placement.html +4 -4
  76. data/test/testcases/span/04_footnote/regexp_problem.html +4 -4
  77. data/test/testcases/span/04_footnote/without_backlink.html +3 -3
  78. data/test/testcases/span/05_html/normal.html +1 -1
  79. data/test/testcases/span/abbreviations/abbrev_in_html.html +9 -0
  80. data/test/testcases/span/abbreviations/abbrev_in_html.text +10 -0
  81. data/test/testcases/span/abbreviations/in_footnote.html +4 -4
  82. data/test/testcases/span/math/normal.html +4 -4
  83. data/test/testcases/span/text_substitutions/entities.html +1 -1
  84. data/test/testcases/span/text_substitutions/entities.text +1 -1
  85. metadata +40 -15
  86. data/test/testcases/block/15_math/mathjax_preview.html +0 -4
  87. data/test/testcases/block/15_math/mathjax_preview.options +0 -2
  88. data/test/testcases/block/15_math/mathjax_preview.text +0 -5
  89. data/test/testcases/block/15_math/mathjax_preview_as_code.html +0 -4
  90. data/test/testcases/block/15_math/mathjax_preview_as_code.options +0 -3
  91. data/test/testcases/block/15_math/mathjax_preview_as_code.text +0 -5
  92. data/test/testcases/block/15_math/mathjax_preview_simple.html +0 -4
  93. data/test/testcases/block/15_math/mathjax_preview_simple.options +0 -2
  94. data/test/testcases/block/15_math/mathjax_preview_simple.text +0 -5
@@ -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" rel="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; &lt;img /&gt;</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; &lt;img /&gt;</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" rel="footnote">35</a></sup>. And another<sup id="fnref:bc" role="doc-noteref"><a href="#fn:bc" class="footnote" rel="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">&#8617;</a></p>
5
+ <li id="fn:ab" role="doc-endnote">
6
+ <p>Some text. <a href="#fnref:ab" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
7
7
  </li>
8
- <li id="fn:bc">
9
- <p>Some other text. <a href="#fnref:bc" class="reversefootnote">&#8617;</a></p>
8
+ <li id="fn:bc" role="doc-endnote">
9
+ <p>Some other text. <a href="#fnref:bc" class="reversefootnote" role="doc-backlink">&#8617;</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" rel="footnote">1</a></sup> footnote<sup id="fnref:adf123-ab:1" role="doc-noteref"><a href="#fn:adf123-ab" class="footnote" rel="footnote">1</a></sup>. And another<sup id="fnref:adf123-bc" role="doc-noteref"><a href="#fn:adf123-bc" class="footnote" rel="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">&#8617;</a> <a href="#fnref:adf123-ab:1" class="reversefootnote">&#8617;<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">&#8617;</a> <a href="#fnref:adf123-ab:1" class="reversefootnote" role="doc-backlink">&#8617;<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">&#8617;</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">&#8617;</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" rel="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" rel="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">&#8617;</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" rel="footnote">3</a></sup> <a href="#fnref:first" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
9
9
  </li>
10
- <li id="fn:second">
11
- <p>Sed ut perspiciatis unde omnis. <a href="#fnref:second" class="reversefootnote">&#8617;</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">&#8617;</a></p>
12
12
  </li>
13
- <li id="fn:third">
14
- <p>Sed ut. <a href="#fnref:third" class="reversefootnote">&#8617;</a></p>
13
+ <li id="fn:third" role="doc-endnote">
14
+ <p>Sed ut. <a href="#fnref:third" class="reversefootnote" role="doc-backlink">&#8617;</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" rel="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" rel="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" rel="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" rel="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" rel="footnote">5</a></sup> used twice<sup id="fnref:fn:1" role="doc-noteref"><a href="#fn:fn" class="footnote" rel="footnote">1</a></sup> and thrice<sup id="fnref:fn:2" role="doc-noteref"><a href="#fn:fn" class="footnote" rel="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&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>
19
+ <li id="fn:fn" role="doc-endnote">
20
+ <p>Some foot note text&nbsp;<a href="#fnref:fn" class="reversefootnote" role="doc-backlink">&#8617;</a>&nbsp;<a href="#fnref:fn:1" class="reversefootnote" role="doc-backlink">&#8617;<sup>2</sup></a>&nbsp;<a href="#fnref:fn:2" class="reversefootnote" role="doc-backlink">&#8617;<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">&#8617;</a></p>
29
+ <p><a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
30
30
  </li>
31
- <li id="fn:1">
32
- <p>some <em>text</em>&nbsp;<a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
31
+ <li id="fn:1" role="doc-endnote">
32
+ <p>some <em>text</em>&nbsp;<a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</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">&#8617;</a></p>
39
+ <p><a href="#fnref:now" class="reversefootnote" role="doc-backlink">&#8617;</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">&#8617;</a></p>
43
+ <p><a href="#fnref:empty" class="reversefootnote" role="doc-backlink">&#8617;</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&#160;<a href="#fnref:1" class="reversefootnote">&#8617;</a></p>
3
+ <li id="fn:1" role="doc-endnote">
4
+ <p>Footnote \` text&#160;<a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</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" rel="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" rel="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&nbsp;<a href="#fnref:note1" class="reversefootnote">&#8617;</a></p>
11
+ <p>A note&nbsp;<a href="#fnref:note1" class="reversefootnote" role="doc-backlink">&#8617;</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" rel="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>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <p><a href="test">title</a> is a title.</p>
4
4
 
5
- <p>This is <? a PI ?>.</p>
5
+ <p>This is &lt;? a PI ?&gt;.</p>
6
6
 
7
7
  <p>This is <!-- a --> comment.</p>
8
8
 
@@ -0,0 +1,9 @@
1
+ <p>This is <em>some <abbr title="This Escapes SVG Text.">TEST</abbr></em> to check.</p>
2
+
3
+ <svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
4
+ <text x="20" y="20">This TEST fails.</text>
5
+ </svg>
6
+ <svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
7
+ <text x="20" y="20">This <abbr title="This Escapes SVG Text.">TEST</abbr> fails.</text>
8
+ </svg>
9
+
@@ -0,0 +1,10 @@
1
+ This is <em>some TEST</em> to check.
2
+
3
+ <svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
4
+ <text x="20" y="20">This TEST fails.</text>
5
+ </svg>
6
+ <svg width="100" height="30" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg">
7
+ <text x="20" y="20" markdown="span">This TEST fails.</text>
8
+ </svg>
9
+
10
+ *[TEST]: This Escapes SVG Text.
@@ -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" rel="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">&#8617;</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">&#8617;</a></p>
7
7
  </li>
8
8
  </ol>
9
9
  </div>
@@ -1,10 +1,10 @@
1
- <p>This is <script type="math/tex">\lambda_\alpha > 5</script> some math. With <script type="math/tex">1
2
- + 1</script> new line characters in between.</p>
1
+ <p>This is \(\lambda_\alpha &gt; 5\) some math. With \(1
2
+ + 1\) new line characters in between.</p>
3
3
 
4
- <p><script type="math/tex">5+5</script> inline math, $5.00 $$no math$$</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><script type="math/tex">5+5</script></p>
8
+ <p>\(5+5\)</p>
9
9
 
10
10
  <p>$$5+5$$</p>
@@ -3,4 +3,4 @@ As well \&amp; as this. Some &#343; other
3
3
  values may &#xAF; may also show but
4
4
  not st. like &amp;#xYZ;.</p>
5
5
 
6
- <p>This is BS&amp;T; done!</p>
6
+ <p>This &lt;span&gt; is BS&amp;T; done!</p>
@@ -3,4 +3,4 @@ As well \& as this. Some &#343; other
3
3
  values may &#xAF; may also show but
4
4
  not st. like &#xYZ;.
5
5
 
6
- This is BS&T; done!
6
+ This &lt;span&gt; is BS&T; done!
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.0.0
4
+ version: 2.3.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: 2019-01-20 00:00:00.000000000 Z
11
+ date: 2021-03-17 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
@@ -28,16 +42,22 @@ dependencies:
28
42
  name: rouge
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
31
48
  - - ">="
32
49
  - !ruby/object:Gem::Version
33
- version: '0'
50
+ version: 3.26.0
34
51
  type: :development
35
52
  prerelease: false
36
53
  version_requirements: !ruby/object:Gem::Requirement
37
54
  requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '3.0'
38
58
  - - ">="
39
59
  - !ruby/object:Gem::Version
40
- version: '0'
60
+ version: 3.26.0
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: stringex
43
63
  requirement: !ruby/object:Gem::Requirement
@@ -194,6 +214,9 @@ files:
194
214
  - test/testcases/block/06_codeblock/disable-highlighting.text
195
215
  - test/testcases/block/06_codeblock/error.html
196
216
  - test/testcases/block/06_codeblock/error.text
217
+ - test/testcases/block/06_codeblock/guess_lang_css_class.html
218
+ - test/testcases/block/06_codeblock/guess_lang_css_class.options
219
+ - test/testcases/block/06_codeblock/guess_lang_css_class.text
197
220
  - test/testcases/block/06_codeblock/highlighting-minted-with-opts.latex
198
221
  - test/testcases/block/06_codeblock/highlighting-minted-with-opts.options
199
222
  - test/testcases/block/06_codeblock/highlighting-minted-with-opts.text
@@ -347,6 +370,10 @@ files:
347
370
  - test/testcases/block/09_html/simple.html
348
371
  - test/testcases/block/09_html/simple.options
349
372
  - test/testcases/block/09_html/simple.text
373
+ - test/testcases/block/09_html/standalone_image_in_div.htmlinput
374
+ - test/testcases/block/09_html/standalone_image_in_div.text
375
+ - test/testcases/block/09_html/table.kramdown
376
+ - test/testcases/block/09_html/table.text
350
377
  - test/testcases/block/09_html/textarea.html
351
378
  - test/testcases/block/09_html/textarea.text
352
379
  - test/testcases/block/09_html/xml.html
@@ -418,15 +445,6 @@ files:
418
445
  - test/testcases/block/14_table/table_with_footnote.text
419
446
  - test/testcases/block/15_math/gh_128.html
420
447
  - test/testcases/block/15_math/gh_128.text
421
- - test/testcases/block/15_math/mathjax_preview.html
422
- - test/testcases/block/15_math/mathjax_preview.options
423
- - test/testcases/block/15_math/mathjax_preview.text
424
- - test/testcases/block/15_math/mathjax_preview_as_code.html
425
- - test/testcases/block/15_math/mathjax_preview_as_code.options
426
- - test/testcases/block/15_math/mathjax_preview_as_code.text
427
- - test/testcases/block/15_math/mathjax_preview_simple.html
428
- - test/testcases/block/15_math/mathjax_preview_simple.options
429
- - test/testcases/block/15_math/mathjax_preview_simple.text
430
448
  - test/testcases/block/15_math/no_engine.html
431
449
  - test/testcases/block/15_math/no_engine.options
432
450
  - test/testcases/block/15_math/no_engine.text
@@ -446,6 +464,9 @@ files:
446
464
  - test/testcases/block/16_toc/toc_with_links.html
447
465
  - test/testcases/block/16_toc/toc_with_links.options
448
466
  - test/testcases/block/16_toc/toc_with_links.text
467
+ - test/testcases/cjk-line-break.html
468
+ - test/testcases/cjk-line-break.options
469
+ - test/testcases/cjk-line-break.text
449
470
  - test/testcases/encoding.html
450
471
  - test/testcases/encoding.text
451
472
  - test/testcases/man/example.man
@@ -503,6 +524,9 @@ files:
503
524
  - test/testcases/span/03_codespan/highlighting-minted.text
504
525
  - test/testcases/span/03_codespan/highlighting.html
505
526
  - test/testcases/span/03_codespan/highlighting.text
527
+ - test/testcases/span/03_codespan/normal-css-class.html
528
+ - test/testcases/span/03_codespan/normal-css-class.options
529
+ - test/testcases/span/03_codespan/normal-css-class.text
506
530
  - test/testcases/span/03_codespan/normal.html
507
531
  - test/testcases/span/03_codespan/normal.text
508
532
  - test/testcases/span/03_codespan/rouge/disabled.html
@@ -564,6 +588,8 @@ files:
564
588
  - test/testcases/span/abbreviations/abbrev.text
565
589
  - test/testcases/span/abbreviations/abbrev_defs.html
566
590
  - test/testcases/span/abbreviations/abbrev_defs.text
591
+ - test/testcases/span/abbreviations/abbrev_in_html.html
592
+ - test/testcases/span/abbreviations/abbrev_in_html.text
567
593
  - test/testcases/span/abbreviations/in_footnote.html
568
594
  - test/testcases/span/abbreviations/in_footnote.text
569
595
  - test/testcases/span/autolinks/url_links.html
@@ -635,8 +661,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
635
661
  - !ruby/object:Gem::Version
636
662
  version: '0'
637
663
  requirements: []
638
- rubyforge_project:
639
- rubygems_version: 2.7.3
664
+ rubygems_version: 3.0.3
640
665
  signing_key:
641
666
  specification_version: 4
642
667
  summary: kramdown is a fast, pure-Ruby Markdown-superset converter.
@@ -1,4 +0,0 @@
1
- <p>This is a <span class="MathJax_Preview">5 + 5</span><script type="math/tex">5 + 5</script> statement</p>
2
-
3
- <div class="MathJax_Preview">5 + 5</div>
4
- <script type="math/tex; mode=display">5 + 5</script>
@@ -1,2 +0,0 @@
1
- :math_engine_opts:
2
- :preview: true
@@ -1,5 +0,0 @@
1
- This is a $$5 + 5$$ statement
2
-
3
- $$
4
- 5 + 5
5
- $$
@@ -1,4 +0,0 @@
1
- <p>This is a <code class="MathJax_Preview">5 + 5</code><script type="math/tex">5 + 5</script> statement</p>
2
-
3
- <pre class="MathJax_Preview"><code>5 + 5</code></pre>
4
- <script type="math/tex; mode=display">5 + 5</script>
@@ -1,3 +0,0 @@
1
- :math_engine_opts:
2
- :preview: true
3
- :preview_as_code: true
@@ -1,5 +0,0 @@
1
- This is a $$5 + 5$$ statement
2
-
3
- $$
4
- 5 + 5
5
- $$
@@ -1,4 +0,0 @@
1
- <p>This is a <span class="MathJax_Preview">math</span><script type="math/tex">5 + 5</script> statement</p>
2
-
3
- <div class="MathJax_Preview">math</div>
4
- <script type="math/tex; mode=display">5 + 5</script>