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.

Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTERS +11 -3
  3. data/VERSION +1 -1
  4. data/lib/kramdown/converter/base.rb +2 -1
  5. data/lib/kramdown/converter/html.rb +22 -14
  6. data/lib/kramdown/converter/kramdown.rb +9 -4
  7. data/lib/kramdown/converter/math_engine/mathjax.rb +7 -33
  8. data/lib/kramdown/converter/syntax_highlighter.rb +1 -1
  9. data/lib/kramdown/element.rb +16 -0
  10. data/lib/kramdown/options.rb +35 -8
  11. data/lib/kramdown/parser/base.rb +3 -1
  12. data/lib/kramdown/parser/html.rb +8 -8
  13. data/lib/kramdown/parser/kramdown.rb +8 -1
  14. data/lib/kramdown/parser/kramdown/autolink.rb +2 -2
  15. data/lib/kramdown/parser/kramdown/codespan.rb +12 -2
  16. data/lib/kramdown/parser/kramdown/emphasis.rb +1 -1
  17. data/lib/kramdown/parser/kramdown/header.rb +1 -1
  18. data/lib/kramdown/parser/kramdown/html.rb +2 -2
  19. data/lib/kramdown/parser/kramdown/list.rb +36 -9
  20. data/lib/kramdown/parser/kramdown/math.rb +1 -1
  21. data/lib/kramdown/parser/kramdown/table.rb +2 -2
  22. data/lib/kramdown/utils/html.rb +7 -0
  23. data/lib/kramdown/version.rb +1 -1
  24. data/man/man1/kramdown.1 +7 -0
  25. data/test/test_files.rb +12 -11
  26. data/test/testcases/block/04_header/atx_header.html +6 -0
  27. data/test/testcases/block/04_header/atx_header.text +6 -0
  28. data/test/testcases/block/09_html/standalone_image_in_div.htmlinput +7 -0
  29. data/test/testcases/block/09_html/standalone_image_in_div.text +8 -0
  30. data/test/testcases/block/12_extension/options.html +4 -4
  31. data/test/testcases/block/12_extension/options2.html +4 -4
  32. data/test/testcases/block/14_table/table_with_footnote.html +4 -4
  33. data/test/testcases/block/15_math/gh_128.html +1 -2
  34. data/test/testcases/block/15_math/normal.html +16 -15
  35. data/test/testcases/block/16_toc/toc_exclude.html +1 -1
  36. data/test/testcases/block/16_toc/toc_levels.html +1 -1
  37. data/test/testcases/block/16_toc/toc_with_footnotes.html +5 -5
  38. data/test/testcases/block/16_toc/toc_with_links.html +1 -1
  39. data/test/testcases/cjk-line-break.html +4 -0
  40. data/test/testcases/cjk-line-break.options +1 -0
  41. data/test/testcases/cjk-line-break.text +12 -0
  42. data/test/testcases/span/02_emphasis/normal.html +4 -0
  43. data/test/testcases/span/02_emphasis/normal.text +4 -0
  44. data/test/testcases/span/04_footnote/backlink_inline.html +21 -21
  45. data/test/testcases/span/04_footnote/backlink_text.html +4 -4
  46. data/test/testcases/span/04_footnote/footnote_nr.html +6 -6
  47. data/test/testcases/span/04_footnote/footnote_prefix.html +6 -6
  48. data/test/testcases/span/04_footnote/inside_footnote.html +9 -9
  49. data/test/testcases/span/04_footnote/markers.html +16 -16
  50. data/test/testcases/span/04_footnote/placement.html +4 -4
  51. data/test/testcases/span/04_footnote/regexp_problem.html +4 -4
  52. data/test/testcases/span/04_footnote/without_backlink.html +3 -3
  53. data/test/testcases/span/abbreviations/in_footnote.html +4 -4
  54. data/test/testcases/span/math/normal.html +4 -4
  55. metadata +22 -13
  56. data/test/testcases/block/15_math/mathjax_preview.html +0 -4
  57. data/test/testcases/block/15_math/mathjax_preview.options +0 -2
  58. data/test/testcases/block/15_math/mathjax_preview.text +0 -5
  59. data/test/testcases/block/15_math/mathjax_preview_as_code.html +0 -4
  60. data/test/testcases/block/15_math/mathjax_preview_as_code.options +0 -3
  61. data/test/testcases/block/15_math/mathjax_preview_as_code.text +0 -5
  62. data/test/testcases/block/15_math/mathjax_preview_simple.html +0 -4
  63. data/test/testcases/block/15_math/mathjax_preview_simple.options +0 -2
  64. data/test/testcases/block/15_math/mathjax_preview_simple.text +0 -5
@@ -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>
@@ -1,2 +0,0 @@
1
- :math_engine_opts:
2
- :preview: 'math'
@@ -1,5 +0,0 @@
1
- This is a $$5 + 5$$ statement
2
-
3
- $$
4
- 5 + 5
5
- $$