rdiscount 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/ext/generate.c +2 -0
- data/test/markdown_test.rb +9 -0
- metadata +2 -2
data/Rakefile
CHANGED
data/ext/generate.c
CHANGED
@@ -821,6 +821,8 @@ static struct smarties {
|
|
821
821
|
} smarties[] = {
|
822
822
|
{ '\'', "'s>", "rsquo", 0 },
|
823
823
|
{ '\'', "'t>", "rsquo", 0 },
|
824
|
+
{ '\'', "'re>", "rsquo", 0 },
|
825
|
+
{ '\'', "'ll>", "rsquo", 0 },
|
824
826
|
{ '-', "--", "mdash", 1 },
|
825
827
|
{ '-', "<->", "ndash", 0 },
|
826
828
|
{ '.', "...", "hellip", 2 },
|
data/test/markdown_test.rb
CHANGED
@@ -64,6 +64,15 @@ class MarkdownTest < Test::Unit::TestCase
|
|
64
64
|
assert_nothing_raised(ArgumentError) { markdown.to_html(true) }
|
65
65
|
end
|
66
66
|
|
67
|
+
def test_that_smart_converts_single_quotes_in_words_that_end_in_re
|
68
|
+
markdown = Markdown.new("They're not for sale.", :smart)
|
69
|
+
assert_equal "<p>They’re not for sale.</p>\n", markdown.to_html
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_that_smart_converts_single_quotes_in_words_that_end_in_ll
|
73
|
+
markdown = Markdown.new("Well that'll be the day", :smart)
|
74
|
+
assert_equal "<p>Well that’ll be the day</p>\n", markdown.to_html
|
75
|
+
end
|
67
76
|
|
68
77
|
# Build tests for each file in the MarkdownTest test suite
|
69
78
|
|
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.2.
|
4
|
+
version: 1.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-11-02 01:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|