rdiscount 1.2.7 → 1.2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/generate.c +1 -1
- data/test/markdown_test.rb +6 -0
- metadata +2 -2
data/Rakefile
CHANGED
data/ext/generate.c
CHANGED
@@ -942,7 +942,7 @@ text(MMIOT *f)
|
|
942
942
|
break;
|
943
943
|
#endif
|
944
944
|
case '*':
|
945
|
-
case '_': if ( tag_text(f) )
|
945
|
+
case '_': if ( tag_text(f) || (isthisspace(f,-1) && isthisspace(f,1)) || (isalnum(peek(f,-1)) && isalnum(peek(f,1))) )
|
946
946
|
Qchar(c, f);
|
947
947
|
#if RELAXED_EMPHASIS
|
948
948
|
else if ( peek(f,1) == c ) {
|
data/test/markdown_test.rb
CHANGED
@@ -24,6 +24,12 @@ class MarkdownTest < Test::Unit::TestCase
|
|
24
24
|
assert_equal "<p><em>Hello World</em>!</p>", markdown.to_html.strip
|
25
25
|
end
|
26
26
|
|
27
|
+
def test_that_inline_markdown_starts_and_ends_correctly
|
28
|
+
markdown = Markdown.new('_start _ foo_bar bar_baz _ end_ *italic* **bold** <a>_blah_</a>')
|
29
|
+
assert_respond_to markdown, :to_html
|
30
|
+
assert_equal "<p><em>start _ foo_bar bar_baz _ end</em> <em>italic</em> <strong>bold</strong> <a><em>blah</em></a></p>", markdown.to_html.strip
|
31
|
+
end
|
32
|
+
|
27
33
|
def test_that_bluecloth_restrictions_are_supported
|
28
34
|
markdown = Markdown.new('Hello World.')
|
29
35
|
[:filter_html, :filter_styles].each do |restriction|
|
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.7
|
4
|
+
version: 1.2.7.1
|
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-08-
|
12
|
+
date: 2008-08-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|