kramdown 1.10.0 → 1.11.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.

Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTERS +1 -1
  3. data/Rakefile +2 -1
  4. data/VERSION +1 -1
  5. data/doc/default.template +2 -2
  6. data/doc/index.page +2 -2
  7. data/doc/installation.page +2 -2
  8. data/lib/kramdown.rb +1 -1
  9. data/lib/kramdown/compatibility.rb +1 -1
  10. data/lib/kramdown/converter.rb +1 -1
  11. data/lib/kramdown/converter/base.rb +1 -1
  12. data/lib/kramdown/converter/hash_ast.rb +1 -1
  13. data/lib/kramdown/converter/html.rb +12 -9
  14. data/lib/kramdown/converter/kramdown.rb +1 -1
  15. data/lib/kramdown/converter/latex.rb +1 -1
  16. data/lib/kramdown/converter/math_engine/itex2mml.rb +1 -1
  17. data/lib/kramdown/converter/math_engine/mathjax.rb +1 -1
  18. data/lib/kramdown/converter/math_engine/mathjaxnode.rb +1 -1
  19. data/lib/kramdown/converter/math_engine/ritex.rb +1 -1
  20. data/lib/kramdown/converter/pdf.rb +1 -1
  21. data/lib/kramdown/converter/remove_html_tags.rb +1 -1
  22. data/lib/kramdown/converter/syntax_highlighter.rb +4 -1
  23. data/lib/kramdown/converter/syntax_highlighter/coderay.rb +4 -4
  24. data/lib/kramdown/converter/syntax_highlighter/minted.rb +1 -1
  25. data/lib/kramdown/converter/syntax_highlighter/rouge.rb +3 -2
  26. data/lib/kramdown/converter/toc.rb +1 -1
  27. data/lib/kramdown/document.rb +1 -1
  28. data/lib/kramdown/element.rb +1 -1
  29. data/lib/kramdown/error.rb +1 -1
  30. data/lib/kramdown/options.rb +1 -1
  31. data/lib/kramdown/parser.rb +1 -1
  32. data/lib/kramdown/parser/base.rb +1 -1
  33. data/lib/kramdown/parser/gfm.rb +2 -2
  34. data/lib/kramdown/parser/html.rb +18 -7
  35. data/lib/kramdown/parser/kramdown.rb +1 -1
  36. data/lib/kramdown/parser/kramdown/abbreviation.rb +1 -1
  37. data/lib/kramdown/parser/kramdown/autolink.rb +1 -1
  38. data/lib/kramdown/parser/kramdown/blank_line.rb +1 -1
  39. data/lib/kramdown/parser/kramdown/block_boundary.rb +1 -1
  40. data/lib/kramdown/parser/kramdown/blockquote.rb +1 -1
  41. data/lib/kramdown/parser/kramdown/codeblock.rb +1 -1
  42. data/lib/kramdown/parser/kramdown/codespan.rb +1 -1
  43. data/lib/kramdown/parser/kramdown/emphasis.rb +2 -2
  44. data/lib/kramdown/parser/kramdown/eob.rb +1 -1
  45. data/lib/kramdown/parser/kramdown/escaped_chars.rb +1 -1
  46. data/lib/kramdown/parser/kramdown/extensions.rb +1 -1
  47. data/lib/kramdown/parser/kramdown/footnote.rb +1 -1
  48. data/lib/kramdown/parser/kramdown/header.rb +1 -1
  49. data/lib/kramdown/parser/kramdown/horizontal_rule.rb +1 -1
  50. data/lib/kramdown/parser/kramdown/html.rb +6 -4
  51. data/lib/kramdown/parser/kramdown/html_entity.rb +1 -1
  52. data/lib/kramdown/parser/kramdown/line_break.rb +1 -1
  53. data/lib/kramdown/parser/kramdown/link.rb +1 -1
  54. data/lib/kramdown/parser/kramdown/list.rb +1 -1
  55. data/lib/kramdown/parser/kramdown/math.rb +1 -1
  56. data/lib/kramdown/parser/kramdown/paragraph.rb +1 -1
  57. data/lib/kramdown/parser/kramdown/smart_quotes.rb +1 -1
  58. data/lib/kramdown/parser/kramdown/table.rb +1 -1
  59. data/lib/kramdown/parser/kramdown/typographic_symbol.rb +1 -1
  60. data/lib/kramdown/parser/markdown.rb +1 -1
  61. data/lib/kramdown/utils.rb +1 -1
  62. data/lib/kramdown/utils/configurable.rb +1 -1
  63. data/lib/kramdown/utils/entities.rb +1 -1
  64. data/lib/kramdown/utils/html.rb +1 -1
  65. data/lib/kramdown/utils/ordered_hash.rb +1 -1
  66. data/lib/kramdown/utils/string_scanner.rb +1 -1
  67. data/lib/kramdown/utils/unidecoder.rb +1 -1
  68. data/lib/kramdown/version.rb +2 -2
  69. data/test/run_tests.rb +1 -1
  70. data/test/test_files.rb +7 -1
  71. data/test/test_location.rb +1 -1
  72. data/test/test_string_scanner_kramdown.rb +1 -1
  73. data/test/testcases/block/06_codeblock/highlighting-opts.html +2 -2
  74. data/test/testcases/block/06_codeblock/highlighting.html +2 -2
  75. data/test/testcases/block/06_codeblock/rouge/simple.html +3 -3
  76. data/test/testcases/block/09_html/not_parsed.html +1 -1
  77. data/test/testcases/block/09_html/simple.html +0 -4
  78. data/test/testcases/block/09_html/simple.html.19 +0 -4
  79. data/test/testcases/block/09_html/simple.text +1 -5
  80. data/test/testcases/block/09_html/xml.html +8 -0
  81. data/test/testcases/block/09_html/xml.text +7 -0
  82. data/test/testcases/block/12_extension/options3.html +2 -2
  83. data/test/testcases/span/02_emphasis/normal.html +2 -0
  84. data/test/testcases/span/02_emphasis/normal.text +2 -0
  85. data/test/testcases/span/05_html/xml.html +5 -0
  86. data/test/testcases/span/05_html/xml.text +5 -0
  87. data/test/testcases_gfm/backticks_syntax.html +2 -2
  88. metadata +20 -2
@@ -1,6 +1,6 @@
1
- <div class="highlighter-coderay"><span class="CodeRay">x = <span class="constant">Class</span>.new
1
+ <div class="language-ruby highlighter-coderay"><span class="CodeRay">x = <span class="constant">Class</span>.new
2
2
  </span>
3
3
  </div>
4
- <div class="highlighter-coderay"><span class="CodeRay"><span class="tag">&lt;a&gt;</span>href<span class="tag">&lt;/a&gt;</span>
4
+ <div class="language-html highlighter-coderay"><span class="CodeRay"><span class="tag">&lt;a&gt;</span>href<span class="tag">&lt;/a&gt;</span>
5
5
  </span>
6
6
  </div>
@@ -1,10 +1,10 @@
1
- <div class="highlighter-rouge"><pre class="highlight"><code><span class="n">x</span> <span class="o">=</span> <span class="no">Class</span><span class="p">.</span><span class="nf">new</span>
1
+ <div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="n">x</span> <span class="o">=</span> <span class="no">Class</span><span class="p">.</span><span class="nf">new</span>
2
2
  </code></pre>
3
3
  </div>
4
- <div class="highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;a&gt;</span>href<span class="nt">&lt;/a&gt;</span>
4
+ <div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;a&gt;</span>href<span class="nt">&lt;/a&gt;</span>
5
5
  </code></pre>
6
6
  </div>
7
7
 
8
- <div class="highlighter-rouge"><pre class="highlight"><code><span class="nv">$foo</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Bar</span><span class="p">;</span>
8
+ <div class="language-php highlighter-rouge"><pre class="highlight"><code><span class="nv">$foo</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Bar</span><span class="p">;</span>
9
9
  </code></pre>
10
10
  </div>
@@ -7,7 +7,7 @@ This is some text
7
7
  </div></div>
8
8
 
9
9
  <div>
10
-
10
+ &lt;/p&gt;
11
11
  </div>
12
12
 
13
13
  <div>
@@ -49,10 +49,6 @@ weiter
49
49
  <p>Another para.</p>
50
50
  </div>
51
51
 
52
- <webgen:block name="test" />
53
-
54
- <some:url name:spac="hallo">doit</some:url>
55
-
56
52
  <p><em>Test</em></p>
57
53
 
58
54
  <p><em>Test</em></p>
@@ -49,10 +49,6 @@ weiter
49
49
  <p>Another para.</p>
50
50
  </div>
51
51
 
52
- <webgen:block name="test" />
53
-
54
- <some:url name:spac="hallo">doit</some:url>
55
-
56
52
  <p><em>Test</em></p>
57
53
 
58
54
  <p><em>Test</em></p>
@@ -40,14 +40,10 @@ hallo
40
40
 
41
41
  para6
42
42
 
43
- <div><div cLASs="clear"></div>
43
+ <div><DiV cLASs="clear"></dIv>
44
44
  Another para.
45
45
  </div>
46
46
 
47
- <webgen:block name="test" />
48
-
49
- <some:url name:spac='hallo'>doit</some:url>
50
-
51
47
  <em>Test</em>
52
48
 
53
49
  <p><em>Test</em></p>
@@ -0,0 +1,8 @@
1
+ <webgen:block name="test" />
2
+
3
+ <some:url name:spac="hallo">doit</some:url>
4
+
5
+ <SoMe:UrL NamE:SpAC="test">doit</SoMe:UrL>
6
+
7
+ <SoMe>doit&lt;/some&gt;
8
+ </SoMe>
@@ -0,0 +1,7 @@
1
+ <webgen:block name="test" />
2
+
3
+ <some:url name:spac='hallo'>doit</some:url>
4
+
5
+ <SoMe:UrL NamE:SpAC='test'>doit</SoMe:UrL>
6
+
7
+ <SoMe>doit</some>
@@ -1,7 +1,7 @@
1
- <div class="highlighter-coderay"><span class="CodeRay">x = <span class="constant">Class</span>.new
1
+ <div class="language-ruby highlighter-coderay"><span class="CodeRay">x = <span class="constant">Class</span>.new
2
2
  </span>
3
3
  </div>
4
4
 
5
- <div class="highlighter-coderay"><span class="CodeRay">x = <span class="constant">Class</span>.new
5
+ <div class="language-ruby highlighter-coderay"><span class="CodeRay">x = <span class="constant">Class</span>.new
6
6
  </span>
7
7
  </div>
@@ -46,3 +46,5 @@ Or that <em>*that</em>* way
46
46
  Or that *<em>that*</em> way</p>
47
47
 
48
48
  <p><a href="http://blah.com/blah_%28">http://blah.com/blah_%28</a></p>
49
+
50
+ <p><a href="A_-B">A-_B</a></p>
@@ -46,3 +46,5 @@ Or that *\*that*\* way
46
46
  Or that \**that\** way
47
47
 
48
48
  [http://blah.com/blah_%28](http://blah.com/blah_%28)
49
+
50
+ [A-_B](A_-B)
@@ -0,0 +1,5 @@
1
+ <p>This <some:url name:spac="hallo">doit</some:url> test</p>
2
+
3
+ <p>This <SoMe:UrL NamE:SpAC="test">doit</SoMe:UrL> test</p>
4
+
5
+ <p>This <SoMe>doit&lt;/some&gt; test</SoMe></p>
@@ -0,0 +1,5 @@
1
+ This <some:url name:spac='hallo'>doit</some:url> test
2
+
3
+ This <SoMe:UrL NamE:SpAC='test'>doit</SoMe:UrL> test
4
+
5
+ This <SoMe>doit</some> test
@@ -7,13 +7,13 @@
7
7
  <pre><code>Unbalanced bottom heavy
8
8
  </code></pre>
9
9
 
10
- <div class="highlighter-coderay"><div class="CodeRay">
10
+ <div class="language-ruby highlighter-coderay"><div class="CodeRay">
11
11
  <div class="code"><pre><span class="line-numbers"><a href="#n1" name="n1">1</a></span>language no space
12
12
  </pre></div>
13
13
  </div>
14
14
  </div>
15
15
 
16
- <div class="highlighter-coderay"><div class="CodeRay">
16
+ <div class="language-ruby highlighter-coderay"><div class="CodeRay">
17
17
  <div class="code"><pre><span class="line-numbers"><a href="#n1" name="n1">1</a></span>language with space
18
18
  </pre></div>
19
19
  </div>
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.10.0
4
+ version: 1.11.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: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: prawn-table
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.2.2
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.2.2
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: ritex
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -428,6 +442,8 @@ files:
428
442
  - test/testcases/block/09_html/simple.text
429
443
  - test/testcases/block/09_html/textarea.html
430
444
  - test/testcases/block/09_html/textarea.text
445
+ - test/testcases/block/09_html/xml.html
446
+ - test/testcases/block/09_html/xml.text
431
447
  - test/testcases/block/10_ald/simple.html
432
448
  - test/testcases/block/10_ald/simple.text
433
449
  - test/testcases/block/11_ial/auto_id_and_ial.html
@@ -611,6 +627,8 @@ files:
611
627
  - test/testcases/span/05_html/normal.text
612
628
  - test/testcases/span/05_html/raw_span_elements.html
613
629
  - test/testcases/span/05_html/raw_span_elements.text
630
+ - test/testcases/span/05_html/xml.html
631
+ - test/testcases/span/05_html/xml.text
614
632
  - test/testcases/span/abbreviations/abbrev.html
615
633
  - test/testcases/span/abbreviations/abbrev.text
616
634
  - test/testcases/span/abbreviations/abbrev_defs.html