devcenter-parser 1.4.5 → 1.4.6
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.
- checksums.yaml +4 -4
- data/lib/devcenter-parser/github_parser.rb +1 -1
- data/lib/devcenter-parser/version.rb +1 -1
- data/test/devcenter-parser_test.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0830bf58ad740ad5831ebd3d90b7045b3163b337
|
4
|
+
data.tar.gz: fbba31fbf961ced6e017c28c93f753d5d466d28e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cf8eb95c7849e2a23976644e32d6f8a45785269b8e1ffda900f473ad7fedddb431e9a7cef847d95774145e6f83d6288194b23f099a8f0e4f4e21db206603a37
|
7
|
+
data.tar.gz: 28f287f3983f65daf07e6e122c2ee6ad3b7502f9adb2acb2ca7bd1516eac6df1a3da2966c022ab8736a32d339840f48060358e3655d6a3c7def45ce221439bf7
|
@@ -15,7 +15,7 @@ module GitHubParser
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def self.github_parser
|
18
|
-
@@github_parser ||= Redcarpet::Markdown.new(HTMLWithPantsRenderer, fenced_code_blocks: true, tables: true)
|
18
|
+
@@github_parser ||= Redcarpet::Markdown.new(HTMLWithPantsRenderer, fenced_code_blocks: true, tables: true, no_intra_emphasis: true)
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.special_blocks(doc)
|
@@ -26,6 +26,13 @@ describe 'DevcenterParser' do
|
|
26
26
|
assert_github_result nil, ''
|
27
27
|
end
|
28
28
|
|
29
|
+
it 'does not create <em>s inside words' do
|
30
|
+
md = 'foo_bar_baz'
|
31
|
+
html = '<p>foo_bar_baz</p>'
|
32
|
+
assert_maruku_result md, html
|
33
|
+
assert_github_result md, html
|
34
|
+
end
|
35
|
+
|
29
36
|
it 'raises InvalidMarkdownError when parsing invalid markdown' do
|
30
37
|
md = '[foo](bar'
|
31
38
|
assert_raises DevcenterParser::InvalidMarkdownError do
|