commonmarker 0.17.9 → 0.17.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of commonmarker might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/ext/commonmarker/blocks.c +20 -14
- data/ext/commonmarker/cmark.h +5 -0
- data/ext/commonmarker/cmark_extension_api.h +1 -1
- data/ext/commonmarker/core-extensions.h +1 -1
- data/ext/commonmarker/html.c +8 -0
- data/ext/commonmarker/inlines.c +1 -1
- data/ext/commonmarker/scanners.c +10550 -18051
- data/ext/commonmarker/table.h +4 -0
- data/lib/commonmarker/config.rb +1 -0
- data/lib/commonmarker/version.rb +1 -1
- data/test/test_options.rb +35 -0
- metadata +4 -2
data/ext/commonmarker/table.h
CHANGED
data/lib/commonmarker/config.rb
CHANGED
data/lib/commonmarker/version.rb
CHANGED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TestExtensions < Minitest::Test
|
4
|
+
def test_full_info_string
|
5
|
+
md = <<-MD
|
6
|
+
```ruby
|
7
|
+
module Foo
|
8
|
+
```
|
9
|
+
MD
|
10
|
+
|
11
|
+
CommonMarker.render_html(md, :FULL_INFO_STRING).tap do |out|
|
12
|
+
assert_includes out, %q(<pre><code class="language-ruby">)
|
13
|
+
end
|
14
|
+
|
15
|
+
md = <<-MD
|
16
|
+
```ruby my info string
|
17
|
+
module Foo
|
18
|
+
```
|
19
|
+
MD
|
20
|
+
|
21
|
+
CommonMarker.render_html(md, :FULL_INFO_STRING).tap do |out|
|
22
|
+
assert_includes out, %q(<pre><code class="language-ruby" data-meta="my info string">)
|
23
|
+
end
|
24
|
+
|
25
|
+
md = <<-MD
|
26
|
+
```ruby my \x00 string
|
27
|
+
module Foo
|
28
|
+
```
|
29
|
+
MD
|
30
|
+
|
31
|
+
CommonMarker.render_html(md, :FULL_INFO_STRING).tap do |out|
|
32
|
+
assert_includes out, %Q(<pre><code class="language-ruby" data-meta="my � string">)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonmarker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-enum
|
@@ -214,6 +214,7 @@ files:
|
|
214
214
|
- test/test_linebreaks.rb
|
215
215
|
- test/test_maliciousness.rb
|
216
216
|
- test/test_node.rb
|
217
|
+
- test/test_options.rb
|
217
218
|
- test/test_pathological_inputs.rb
|
218
219
|
- test/test_plaintext.rb
|
219
220
|
- test/test_renderer.rb
|
@@ -262,6 +263,7 @@ test_files:
|
|
262
263
|
- test/test_linebreaks.rb
|
263
264
|
- test/test_maliciousness.rb
|
264
265
|
- test/test_node.rb
|
266
|
+
- test/test_options.rb
|
265
267
|
- test/test_pathological_inputs.rb
|
266
268
|
- test/test_plaintext.rb
|
267
269
|
- test/test_renderer.rb
|