kramdown 1.12.0 → 1.13.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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTERS +3 -2
  3. data/README.md +3 -3
  4. data/Rakefile +2 -1
  5. data/VERSION +1 -1
  6. data/bin/kramdown +4 -2
  7. data/doc/documentation.template +1 -0
  8. data/doc/index.page +2 -2
  9. data/doc/syntax.page +7 -7
  10. data/lib/kramdown/converter.rb +1 -0
  11. data/lib/kramdown/converter/man.rb +303 -0
  12. data/lib/kramdown/converter/math_engine/mathjax.rb +12 -2
  13. data/lib/kramdown/parser/gfm.rb +23 -6
  14. data/lib/kramdown/parser/kramdown/list.rb +4 -2
  15. data/lib/kramdown/parser/kramdown/smart_quotes.rb +1 -1
  16. data/lib/kramdown/parser/kramdown/table.rb +3 -3
  17. data/lib/kramdown/version.rb +1 -1
  18. data/man/man1/kramdown.1 +332 -472
  19. data/test/test_files.rb +15 -0
  20. data/test/testcases/block/08_list/lazy_and_nested.html +9 -0
  21. data/test/testcases/block/08_list/lazy_and_nested.text +4 -0
  22. data/test/testcases/block/14_table/header.html +21 -0
  23. data/test/testcases/block/14_table/header.text +7 -0
  24. data/test/testcases/block/15_math/mathjax_preview_as_code.html +4 -0
  25. data/test/testcases/block/15_math/mathjax_preview_as_code.options +3 -0
  26. data/test/testcases/block/15_math/mathjax_preview_as_code.text +5 -0
  27. data/test/testcases/man/example.man +123 -0
  28. data/test/testcases/man/example.text +85 -0
  29. data/test/testcases/man/heading-name-dash-description.man +4 -0
  30. data/test/testcases/man/heading-name-dash-description.text +1 -0
  31. data/test/testcases/man/heading-name-description.man +4 -0
  32. data/test/testcases/man/heading-name-description.text +2 -0
  33. data/test/testcases/man/heading-name-section-description.man +4 -0
  34. data/test/testcases/man/heading-name-section-description.text +1 -0
  35. data/test/testcases/man/heading-name-section.man +2 -0
  36. data/test/testcases/man/heading-name-section.text +1 -0
  37. data/test/testcases/man/heading-name.man +2 -0
  38. data/test/testcases/man/heading-name.text +1 -0
  39. data/test/testcases/man/sections.man +4 -0
  40. data/test/testcases/man/sections.text +11 -0
  41. data/test/testcases/man/text-escaping.man +8 -0
  42. data/test/testcases/man/text-escaping.text +7 -0
  43. data/test/testcases/span/text_substitutions/typography.html +2 -0
  44. data/test/testcases/span/text_substitutions/typography.text +2 -0
  45. data/test/testcases_gfm/codeblock_fenced.html +20 -0
  46. data/test/testcases_gfm/codeblock_fenced.options +1 -0
  47. data/test/testcases_gfm/codeblock_fenced.text +21 -0
  48. data/test/testcases_gfm/header_ids.html +17 -0
  49. data/test/testcases_gfm/header_ids.html.19 +17 -0
  50. data/test/testcases_gfm/header_ids.options +1 -0
  51. data/test/testcases_gfm/header_ids.text +17 -0
  52. data/test/testcases_gfm/header_ids_with_prefix.html +3 -0
  53. data/test/testcases_gfm/header_ids_with_prefix.options +2 -0
  54. data/test/testcases_gfm/header_ids_with_prefix.text +3 -0
  55. metadata +34 -2
@@ -0,0 +1 @@
1
+ :enable_coderay: false
@@ -0,0 +1,21 @@
1
+ normal
2
+
3
+ ```ruby
4
+ require 'kramdown'
5
+
6
+ Kramdown::Document.new(text).to_html
7
+ ```
8
+
9
+ indent with tab
10
+
11
+ ```ruby
12
+ require 'kramdown'
13
+
14
+ Kramdown::Document.new(text).to_html
15
+ ```
16
+
17
+ indent with 2 spaces
18
+
19
+ ```js
20
+ console.log("hello");
21
+ ```
@@ -0,0 +1,17 @@
1
+ <h3 id="myid">test</h3>
2
+
3
+ <h3 id="variable_name">variable_name</h3>
4
+
5
+ <h3 id="abc-def-">abc def öúß</h3>
6
+
7
+ <h3 id="192-abc-192">192 abc 192</h3>
8
+
9
+ <h3>;.;;</h3>
10
+
11
+ <h3 id="variable_name-1">variable_name</h3>
12
+
13
+ <h3 id="variable_name-2">variable_name</h3>
14
+
15
+ <h3 id="-1">;;</h3>
16
+
17
+ <h3 id="before--after-tab">before after tab</h3>
@@ -0,0 +1,17 @@
1
+ <h3 id="myid">test</h3>
2
+
3
+ <h3 id="variable_name">variable_name</h3>
4
+
5
+ <h3 id="abc-def-öúß">abc def öúß</h3>
6
+
7
+ <h3 id="192-abc-192">192 abc 192</h3>
8
+
9
+ <h3>;.;;</h3>
10
+
11
+ <h3 id="variable_name-1">variable_name</h3>
12
+
13
+ <h3 id="variable_name-2">variable_name</h3>
14
+
15
+ <h3 id="-1">;;</h3>
16
+
17
+ <h3 id="before--after-tab">before after tab</h3>
@@ -0,0 +1 @@
1
+ :auto_ids: true
@@ -0,0 +1,17 @@
1
+ ### test {#myid}
2
+
3
+ ### variable_name
4
+
5
+ ### abc def öúß
6
+
7
+ ### 192 abc 192
8
+
9
+ ### ;.;;
10
+
11
+ ### variable_name
12
+
13
+ ### variable_name
14
+
15
+ ### ;;
16
+
17
+ ### before after tab
@@ -0,0 +1,3 @@
1
+ <h1 id="hallo-header-1">Header 1</h1>
2
+
3
+ <h1 id="hallo-123">123</h1>
@@ -0,0 +1,2 @@
1
+ :auto_ids: true
2
+ :auto_id_prefix: hallo-
@@ -0,0 +1,3 @@
1
+ # Header 1
2
+
3
+ # 123
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.12.0
4
+ version: 1.13.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-08-15 00:00:00.000000000 Z
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -174,6 +174,7 @@ files:
174
174
  - lib/kramdown/converter/html.rb
175
175
  - lib/kramdown/converter/kramdown.rb
176
176
  - lib/kramdown/converter/latex.rb
177
+ - lib/kramdown/converter/man.rb
177
178
  - lib/kramdown/converter/math_engine/itex2mml.rb
178
179
  - lib/kramdown/converter/math_engine/mathjax.rb
179
180
  - lib/kramdown/converter/math_engine/mathjaxnode.rb
@@ -356,6 +357,8 @@ files:
356
357
  - test/testcases/block/08_list/item_ial.text
357
358
  - test/testcases/block/08_list/lazy.html
358
359
  - test/testcases/block/08_list/lazy.text
360
+ - test/testcases/block/08_list/lazy_and_nested.html
361
+ - test/testcases/block/08_list/lazy_and_nested.text
359
362
  - test/testcases/block/08_list/list_and_hr.html
360
363
  - test/testcases/block/08_list/list_and_hr.text
361
364
  - test/testcases/block/08_list/list_and_others.html
@@ -518,6 +521,9 @@ files:
518
521
  - test/testcases/block/15_math/mathjax_preview.html
519
522
  - test/testcases/block/15_math/mathjax_preview.options
520
523
  - test/testcases/block/15_math/mathjax_preview.text
524
+ - test/testcases/block/15_math/mathjax_preview_as_code.html
525
+ - test/testcases/block/15_math/mathjax_preview_as_code.options
526
+ - test/testcases/block/15_math/mathjax_preview_as_code.text
521
527
  - test/testcases/block/15_math/mathjax_preview_simple.html
522
528
  - test/testcases/block/15_math/mathjax_preview_simple.options
523
529
  - test/testcases/block/15_math/mathjax_preview_simple.text
@@ -551,6 +557,22 @@ files:
551
557
  - test/testcases/block/16_toc/toc_with_footnotes.text
552
558
  - test/testcases/encoding.html
553
559
  - test/testcases/encoding.text
560
+ - test/testcases/man/example.man
561
+ - test/testcases/man/example.text
562
+ - test/testcases/man/heading-name-dash-description.man
563
+ - test/testcases/man/heading-name-dash-description.text
564
+ - test/testcases/man/heading-name-description.man
565
+ - test/testcases/man/heading-name-description.text
566
+ - test/testcases/man/heading-name-section-description.man
567
+ - test/testcases/man/heading-name-section-description.text
568
+ - test/testcases/man/heading-name-section.man
569
+ - test/testcases/man/heading-name-section.text
570
+ - test/testcases/man/heading-name.man
571
+ - test/testcases/man/heading-name.text
572
+ - test/testcases/man/sections.man
573
+ - test/testcases/man/sections.text
574
+ - test/testcases/man/text-escaping.man
575
+ - test/testcases/man/text-escaping.text
554
576
  - test/testcases/span/01_link/empty.html
555
577
  - test/testcases/span/01_link/empty.text
556
578
  - test/testcases/span/01_link/empty_title.htmlinput
@@ -703,11 +725,21 @@ files:
703
725
  - test/testcases_gfm/backticks_disable_highlighting.text
704
726
  - test/testcases_gfm/backticks_syntax.html
705
727
  - test/testcases_gfm/backticks_syntax.text
728
+ - test/testcases_gfm/codeblock_fenced.html
729
+ - test/testcases_gfm/codeblock_fenced.options
730
+ - test/testcases_gfm/codeblock_fenced.text
706
731
  - test/testcases_gfm/hard_line_breaks.html
707
732
  - test/testcases_gfm/hard_line_breaks.text
708
733
  - test/testcases_gfm/hard_line_breaks_off.html
709
734
  - test/testcases_gfm/hard_line_breaks_off.options
710
735
  - test/testcases_gfm/hard_line_breaks_off.text
736
+ - test/testcases_gfm/header_ids.html
737
+ - test/testcases_gfm/header_ids.html.19
738
+ - test/testcases_gfm/header_ids.options
739
+ - test/testcases_gfm/header_ids.text
740
+ - test/testcases_gfm/header_ids_with_prefix.html
741
+ - test/testcases_gfm/header_ids_with_prefix.options
742
+ - test/testcases_gfm/header_ids_with_prefix.text
711
743
  - test/testcases_gfm/paragraph_end-disabled.html
712
744
  - test/testcases_gfm/paragraph_end-disabled.options
713
745
  - test/testcases_gfm/paragraph_end-disabled.text