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.

@@ -3,6 +3,10 @@
3
3
 
4
4
  #include "core-extensions.h"
5
5
 
6
+
7
+ extern cmark_node_type CMARK_NODE_TABLE, CMARK_NODE_TABLE_ROW,
8
+ CMARK_NODE_TABLE_CELL;
9
+
6
10
  cmark_syntax_extension *create_table_extension(void);
7
11
 
8
12
  #endif
@@ -23,6 +23,7 @@ module CommonMarker
23
23
  define :NOBREAKS, (1 << 4)
24
24
  define :GITHUB_PRE_LANG, (1 << 11)
25
25
  define :TABLE_PREFER_STYLE_ATTRIBUTES, (1 << 15)
26
+ define :FULL_INFO_STRING, (1 << 16)
26
27
  end
27
28
 
28
29
  def self.process_options(option, type)
@@ -1,3 +1,3 @@
1
1
  module CommonMarker
2
- VERSION = '0.17.9'.freeze
2
+ VERSION = '0.17.10'.freeze
3
3
  end
@@ -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.9
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-03-12 00:00:00.000000000 Z
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