markdown 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/HISTORY.md +2 -0
- data/Manifest.txt +15 -18
- data/Rakefile +3 -3
- data/lib/markdown/config.rb +202 -202
- data/lib/markdown/engines/bluecloth.rb +17 -17
- data/lib/markdown/engines/kramdown.rb +62 -62
- data/lib/markdown/engines/maruku.rb +16 -16
- data/lib/markdown/engines/pandoc_ruby.rb +37 -37
- data/lib/markdown/engines/rdiscount.rb +17 -17
- data/lib/markdown/engines/redcarpet.rb +56 -56
- data/lib/markdown/engines/rpeg_markdown.rb +13 -13
- data/lib/markdown/version.rb +4 -4
- data/lib/markdown/wrapper.rb +135 -135
- data/lib/markdown.rb +41 -43
- metadata +18 -19
- data/.gemtest +0 -0
- data/test/helper.rb +0 -12
- data/test/test_kramdown.rb +0 -43
- data/test/test_redcarpet.rb +0 -38
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: props
|
@@ -56,32 +56,38 @@ dependencies:
|
|
56
56
|
name: rdoc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '4.0'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '7'
|
62
65
|
type: :development
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '4.0'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '7'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: hoe
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
81
|
+
version: '4.1'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
88
|
+
version: '4.1'
|
83
89
|
description: Markdown Engine Wrapper - Use Your Markdown Library of Choice
|
84
|
-
email:
|
90
|
+
email: gerald.bauer@gmail.com
|
85
91
|
executables: []
|
86
92
|
extensions: []
|
87
93
|
extra_rdoc_files:
|
@@ -89,7 +95,6 @@ extra_rdoc_files:
|
|
89
95
|
- Manifest.txt
|
90
96
|
- README.md
|
91
97
|
files:
|
92
|
-
- ".gemtest"
|
93
98
|
- HISTORY.md
|
94
99
|
- Manifest.txt
|
95
100
|
- README.md
|
@@ -105,14 +110,11 @@ files:
|
|
105
110
|
- lib/markdown/engines/rpeg_markdown.rb
|
106
111
|
- lib/markdown/version.rb
|
107
112
|
- lib/markdown/wrapper.rb
|
108
|
-
- test/helper.rb
|
109
|
-
- test/test_kramdown.rb
|
110
|
-
- test/test_redcarpet.rb
|
111
113
|
homepage: https://github.com/rubylibs/markdown
|
112
114
|
licenses:
|
113
115
|
- Public Domain
|
114
116
|
metadata: {}
|
115
|
-
post_install_message:
|
117
|
+
post_install_message:
|
116
118
|
rdoc_options:
|
117
119
|
- "--main"
|
118
120
|
- README.md
|
@@ -129,11 +131,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
131
|
- !ruby/object:Gem::Version
|
130
132
|
version: '0'
|
131
133
|
requirements: []
|
132
|
-
|
133
|
-
|
134
|
-
signing_key:
|
134
|
+
rubygems_version: 3.4.10
|
135
|
+
signing_key:
|
135
136
|
specification_version: 4
|
136
137
|
summary: Markdown Engine Wrapper - Use Your Markdown Library of Choice
|
137
|
-
test_files:
|
138
|
-
- test/test_kramdown.rb
|
139
|
-
- test/test_redcarpet.rb
|
138
|
+
test_files: []
|
data/.gemtest
DELETED
File without changes
|
data/test/helper.rb
DELETED
data/test/test_kramdown.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
###
|
2
|
-
# NB: for local testing run like:
|
3
|
-
#
|
4
|
-
# 1.9.x: ruby -Ilib test/test_kramdown.rb
|
5
|
-
|
6
|
-
# core and stlibs
|
7
|
-
|
8
|
-
require 'helper'
|
9
|
-
|
10
|
-
|
11
|
-
class TestKramdown < MiniTest::Test
|
12
|
-
|
13
|
-
def setup
|
14
|
-
puts 'enter setup'
|
15
|
-
lib = Markdown.lib
|
16
|
-
puts ' set lib=kramdown'
|
17
|
-
Markdown.lib = 'kramdown'
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_lib
|
21
|
-
lib = Markdown.lib
|
22
|
-
assert_equal( 'kramdown', lib )
|
23
|
-
end
|
24
|
-
|
25
|
-
def test_to_html_banner_false
|
26
|
-
md = Markdown.new( 'Hello World!', banner: false )
|
27
|
-
|
28
|
-
assert_equal( "<p>Hello World!</p>\n", md.to_html )
|
29
|
-
assert_equal( "<p>Hello World!</p>\n", md.to_html )
|
30
|
-
assert_equal( "<p>Hello World!</p>\n", md.to_html )
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_to_html_banner_true
|
34
|
-
md = Markdown.new( 'Hello World!', banner: true )
|
35
|
-
html1 = md.to_html
|
36
|
-
html2 = md.to_html
|
37
|
-
assert( html1 =~ /^<!-- === begin markdown block ===/ )
|
38
|
-
assert( html1.include?( "<p>Hello World!</p>\n" ))
|
39
|
-
assert( html2.include?( "<p>Hello World!</p>\n" ))
|
40
|
-
assert( html1 =~ /=== -->$/ )
|
41
|
-
end
|
42
|
-
|
43
|
-
end # class TestKramdown
|
data/test/test_redcarpet.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
###
|
2
|
-
# NB: for local testing run like:
|
3
|
-
#
|
4
|
-
# 1.9.x: ruby -Ilib test/test_redcarpet.rb
|
5
|
-
|
6
|
-
# core and stlibs
|
7
|
-
|
8
|
-
require 'helper'
|
9
|
-
|
10
|
-
|
11
|
-
class TestRedcarpet < MiniTest::Test
|
12
|
-
|
13
|
-
def setup
|
14
|
-
puts 'enter setup'
|
15
|
-
lib = Markdown.lib
|
16
|
-
puts ' set lib=redcarpet'
|
17
|
-
Markdown.lib = 'redcarpet'
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_lib
|
21
|
-
lib = Markdown.lib
|
22
|
-
assert_equal( 'redcarpet', lib )
|
23
|
-
end
|
24
|
-
|
25
|
-
def test_to_html_banner_false
|
26
|
-
html = Markdown.new( 'Hello World!', banner: false ).to_html
|
27
|
-
assert_equal( "<p>Hello World!</p>\n", html )
|
28
|
-
end
|
29
|
-
|
30
|
-
def test_to_html_banner_true
|
31
|
-
html = Markdown.new( 'Hello World!', banner: true ).to_html
|
32
|
-
assert( html =~ /^<!-- === begin markdown block ===/ )
|
33
|
-
assert( html.include?( "<p>Hello World!</p>\n" ))
|
34
|
-
assert( html =~ /=== -->$/ )
|
35
|
-
end
|
36
|
-
|
37
|
-
|
38
|
-
end # class TestRedcarpet
|