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.
- checksums.yaml +4 -4
- data/CONTRIBUTERS +3 -2
- data/README.md +3 -3
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/bin/kramdown +4 -2
- data/doc/documentation.template +1 -0
- data/doc/index.page +2 -2
- data/doc/syntax.page +7 -7
- data/lib/kramdown/converter.rb +1 -0
- data/lib/kramdown/converter/man.rb +303 -0
- data/lib/kramdown/converter/math_engine/mathjax.rb +12 -2
- data/lib/kramdown/parser/gfm.rb +23 -6
- data/lib/kramdown/parser/kramdown/list.rb +4 -2
- data/lib/kramdown/parser/kramdown/smart_quotes.rb +1 -1
- data/lib/kramdown/parser/kramdown/table.rb +3 -3
- data/lib/kramdown/version.rb +1 -1
- data/man/man1/kramdown.1 +332 -472
- data/test/test_files.rb +15 -0
- data/test/testcases/block/08_list/lazy_and_nested.html +9 -0
- data/test/testcases/block/08_list/lazy_and_nested.text +4 -0
- data/test/testcases/block/14_table/header.html +21 -0
- data/test/testcases/block/14_table/header.text +7 -0
- data/test/testcases/block/15_math/mathjax_preview_as_code.html +4 -0
- data/test/testcases/block/15_math/mathjax_preview_as_code.options +3 -0
- data/test/testcases/block/15_math/mathjax_preview_as_code.text +5 -0
- data/test/testcases/man/example.man +123 -0
- data/test/testcases/man/example.text +85 -0
- data/test/testcases/man/heading-name-dash-description.man +4 -0
- data/test/testcases/man/heading-name-dash-description.text +1 -0
- data/test/testcases/man/heading-name-description.man +4 -0
- data/test/testcases/man/heading-name-description.text +2 -0
- data/test/testcases/man/heading-name-section-description.man +4 -0
- data/test/testcases/man/heading-name-section-description.text +1 -0
- data/test/testcases/man/heading-name-section.man +2 -0
- data/test/testcases/man/heading-name-section.text +1 -0
- data/test/testcases/man/heading-name.man +2 -0
- data/test/testcases/man/heading-name.text +1 -0
- data/test/testcases/man/sections.man +4 -0
- data/test/testcases/man/sections.text +11 -0
- data/test/testcases/man/text-escaping.man +8 -0
- data/test/testcases/man/text-escaping.text +7 -0
- data/test/testcases/span/text_substitutions/typography.html +2 -0
- data/test/testcases/span/text_substitutions/typography.text +2 -0
- data/test/testcases_gfm/codeblock_fenced.html +20 -0
- data/test/testcases_gfm/codeblock_fenced.options +1 -0
- data/test/testcases_gfm/codeblock_fenced.text +21 -0
- data/test/testcases_gfm/header_ids.html +17 -0
- data/test/testcases_gfm/header_ids.html.19 +17 -0
- data/test/testcases_gfm/header_ids.options +1 -0
- data/test/testcases_gfm/header_ids.text +17 -0
- data/test/testcases_gfm/header_ids_with_prefix.html +3 -0
- data/test/testcases_gfm/header_ids_with_prefix.options +2 -0
- data/test/testcases_gfm/header_ids_with_prefix.text +3 -0
- 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
|
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.
|
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-
|
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
|