rdiscount 1.3.5 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +20 -10
- data/Rakefile +12 -11
- data/ext/Csio.c +14 -2
- data/ext/css.c +76 -0
- data/ext/cstring.h +7 -5
- data/ext/dumptree.c +5 -1
- data/ext/generate.c +473 -268
- data/ext/markdown.c +209 -96
- data/ext/markdown.h +16 -5
- data/ext/mkdio.c +68 -6
- data/ext/mkdio.h +20 -7
- data/ext/resource.c +13 -27
- data/ext/toc.c +24 -20
- data/ext/xml.c +82 -0
- data/lib/rdiscount.rb +2 -2
- data/rdiscount.gemspec +4 -2
- data/test/markdown_test.rb +17 -0
- metadata +5 -3
data/test/markdown_test.rb
CHANGED
@@ -94,6 +94,23 @@ class MarkdownTest < Test::Unit::TestCase
|
|
94
94
|
markdown.to_html
|
95
95
|
end
|
96
96
|
|
97
|
+
def test_filter_html_doesnt_break_two_space_hard_break
|
98
|
+
markdown = Markdown.new("Lorem, \nipsum\n", :filter_html)
|
99
|
+
assert_equal "<p>Lorem,<br/>\nipsum</p>\n",
|
100
|
+
markdown.to_html
|
101
|
+
end
|
102
|
+
|
103
|
+
# This isn't in the spec but is Markdown.pl behavior.
|
104
|
+
def test_block_quotes_preceded_by_spaces
|
105
|
+
markdown = Markdown.new(
|
106
|
+
"A wise man once said:\n\n" +
|
107
|
+
" > Isn't it wonderful just to be alive.\n"
|
108
|
+
)
|
109
|
+
assert_equal "<p>A wise man once said:</p>\n\n" +
|
110
|
+
"<blockquote><p>Isn't it wonderful just to be alive.</p></blockquote>\n",
|
111
|
+
markdown.to_html
|
112
|
+
end
|
113
|
+
|
97
114
|
# Build tests for each file in the MarkdownTest test suite
|
98
115
|
|
99
116
|
Dir["#{MARKDOWN_TEST_DIR}/Tests/*.text"].each do |text_file|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdiscount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-11-13 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -30,6 +30,7 @@ files:
|
|
30
30
|
- ext/Csio.c
|
31
31
|
- ext/amalloc.h
|
32
32
|
- ext/config.h
|
33
|
+
- ext/css.c
|
33
34
|
- ext/cstring.h
|
34
35
|
- ext/docheader.c
|
35
36
|
- ext/dumptree.c
|
@@ -42,6 +43,7 @@ files:
|
|
42
43
|
- ext/rdiscount.c
|
43
44
|
- ext/resource.c
|
44
45
|
- ext/toc.c
|
46
|
+
- ext/xml.c
|
45
47
|
- lib/markdown.rb
|
46
48
|
- lib/rdiscount.rb
|
47
49
|
- rdiscount.gemspec
|
@@ -73,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
75
|
requirements: []
|
74
76
|
|
75
77
|
rubyforge_project: wink
|
76
|
-
rubygems_version: 1.3.
|
78
|
+
rubygems_version: 1.3.5
|
77
79
|
signing_key:
|
78
80
|
specification_version: 3
|
79
81
|
summary: Fast Implementation of Gruber's Markdown in C
|