commonmarker 0.16.8 → 0.17.0
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 +1 -1
- data/ext/commonmarker/cmark/CMakeLists.txt +3 -3
- data/ext/commonmarker/cmark/README.md +2 -2
- data/ext/commonmarker/cmark/api_test/CMakeLists.txt +2 -1
- data/ext/commonmarker/cmark/api_test/harness.c +27 -0
- data/ext/commonmarker/cmark/api_test/main.c +179 -3
- data/ext/commonmarker/cmark/changelog.txt +148 -0
- data/ext/commonmarker/cmark/extensions/autolink.c +8 -0
- data/ext/commonmarker/cmark/extensions/core-extensions.c +11 -1
- data/ext/commonmarker/cmark/extensions/core-extensions.h +1 -1
- data/ext/commonmarker/cmark/extensions/strikethrough.c +5 -0
- data/ext/commonmarker/cmark/extensions/table.c +44 -23
- data/ext/commonmarker/cmark/src/blocks.c +3 -2
- data/ext/commonmarker/cmark/src/cmark_extension_api.h +9 -0
- data/ext/commonmarker/cmark/src/inlines.c +208 -93
- data/ext/commonmarker/cmark/src/inlines.h +2 -2
- data/ext/commonmarker/cmark/src/iterator.c +1 -0
- data/ext/commonmarker/cmark/src/latex.c +11 -11
- data/ext/commonmarker/cmark/src/main.c +12 -11
- data/ext/commonmarker/cmark/src/node.h +1 -0
- data/ext/commonmarker/cmark/src/scanners.c +34 -24
- data/ext/commonmarker/cmark/src/scanners.re +1 -1
- data/ext/commonmarker/cmark/src/syntax_extension.c +5 -0
- data/ext/commonmarker/cmark/src/syntax_extension.h +1 -0
- data/ext/commonmarker/cmark/test/CMakeLists.txt +3 -2
- data/ext/commonmarker/cmark/test/cmark.py +2 -5
- data/ext/commonmarker/cmark/test/regression.txt +35 -1
- data/ext/commonmarker/cmark/test/smart_punct.txt +9 -0
- data/ext/commonmarker/cmark/test/spec.txt +88 -26
- data/ext/commonmarker/commonmarker.c +1 -1
- data/ext/commonmarker/extconf.rb +1 -1
- data/lib/commonmarker/version.rb +1 -1
- data/test/test_attributes.rb +1 -80
- metadata +2 -2
@@ -1161,5 +1161,5 @@ __attribute__((visibility("default"))) void Init_commonmarker() {
|
|
1161
1161
|
rb_define_method(rb_mNode, "html_escape_href", rb_html_escape_href, 1);
|
1162
1162
|
rb_define_method(rb_mNode, "html_escape_html", rb_html_escape_html, 1);
|
1163
1163
|
|
1164
|
-
|
1164
|
+
core_extensions_ensure_registered();
|
1165
1165
|
}
|
data/ext/commonmarker/extconf.rb
CHANGED
@@ -42,7 +42,7 @@ dir_config('cmark', HEADER_DIRS, LIB_DIRS)
|
|
42
42
|
# don't even bother to do this check if using OS X's messed up system Ruby: http://git.io/vsxkn
|
43
43
|
unless sitearch =~ /^universal-darwin/
|
44
44
|
abort 'libcmark-gfm is missing.' unless find_library('cmark-gfm', 'cmark_parse_document')
|
45
|
-
abort 'libcmark-gfmextensions is missing.' unless find_library('cmark-gfmextensions', '
|
45
|
+
abort 'libcmark-gfmextensions is missing.' unless find_library('cmark-gfmextensions', 'core_extensions_ensure_registered')
|
46
46
|
end
|
47
47
|
|
48
48
|
$LDFLAGS << " -L#{CMARK_BUILD_DIR}/src -L#{CMARK_BUILD_DIR}/extensions -lcmark-gfm -lcmark-gfmextensions"
|
data/lib/commonmarker/version.rb
CHANGED
data/test/test_attributes.rb
CHANGED
@@ -15,86 +15,7 @@ class TestAttributes < Minitest::Test
|
|
15
15
|
|
16
16
|
sourcepos.delete_if { |h| h.values.all? { |v| v == 0 } }
|
17
17
|
|
18
|
-
result = [
|
19
|
-
{
|
20
|
-
:start_line => 1,
|
21
|
-
:start_column => 1,
|
22
|
-
:end_line => 10,
|
23
|
-
:end_column => 12
|
24
|
-
},
|
25
|
-
{
|
26
|
-
:start_line => 1,
|
27
|
-
:start_column => 1,
|
28
|
-
:end_line => 1,
|
29
|
-
:end_column => 17
|
30
|
-
},
|
31
|
-
{
|
32
|
-
:start_line => 3,
|
33
|
-
:start_column => 1,
|
34
|
-
:end_line => 5,
|
35
|
-
:end_column => 36
|
36
|
-
},
|
37
|
-
{
|
38
|
-
:start_line => 7,
|
39
|
-
:start_column => 1,
|
40
|
-
:end_line => 10,
|
41
|
-
:end_column => 12
|
42
|
-
},
|
43
|
-
{
|
44
|
-
:start_line => 7,
|
45
|
-
:start_column => 1,
|
46
|
-
:end_line => 7,
|
47
|
-
:end_column => 11
|
48
|
-
},
|
49
|
-
{
|
50
|
-
:start_line => 7,
|
51
|
-
:start_column => 4,
|
52
|
-
:end_line => 7,
|
53
|
-
:end_column => 11
|
54
|
-
},
|
55
|
-
{
|
56
|
-
:start_line => 8,
|
57
|
-
:start_column => 1,
|
58
|
-
:end_line => 10,
|
59
|
-
:end_column => 12
|
60
|
-
},
|
61
|
-
{
|
62
|
-
:start_line => 8,
|
63
|
-
:start_column => 4,
|
64
|
-
:end_line => 8,
|
65
|
-
:end_column => 11
|
66
|
-
},
|
67
|
-
{
|
68
|
-
:start_line => 9,
|
69
|
-
:start_column => 4,
|
70
|
-
:end_line => 10,
|
71
|
-
:end_column => 12
|
72
|
-
},
|
73
|
-
{
|
74
|
-
:start_line => 9,
|
75
|
-
:start_column => 4,
|
76
|
-
:end_line => 9,
|
77
|
-
:end_column => 12
|
78
|
-
},
|
79
|
-
{
|
80
|
-
:start_line => 9,
|
81
|
-
:start_column => 6,
|
82
|
-
:end_line => 9,
|
83
|
-
:end_column => 12
|
84
|
-
},
|
85
|
-
{
|
86
|
-
:start_line => 10,
|
87
|
-
:start_column => 4,
|
88
|
-
:end_line => 10,
|
89
|
-
:end_column => 12
|
90
|
-
},
|
91
|
-
{
|
92
|
-
:start_line => 10,
|
93
|
-
:start_column => 6,
|
94
|
-
:end_line => 10,
|
95
|
-
:end_column => 12
|
96
|
-
}
|
97
|
-
]
|
18
|
+
result = [{:start_line=>1, :start_column=>1, :end_line=>10, :end_column=>12}, {:start_line=>1, :start_column=>1, :end_line=>1, :end_column=>17}, {:start_line=>1, :start_column=>4, :end_line=>1, :end_column=>17}, {:start_line=>3, :start_column=>1, :end_line=>5, :end_column=>36}, {:start_line=>3, :start_column=>1, :end_line=>3, :end_column=>55}, {:start_line=>4, :start_column=>1, :end_line=>4, :end_column=>53}, {:start_line=>4, :start_column=>2, :end_line=>4, :end_column=>14}, {:start_line=>4, :start_column=>54, :end_line=>4, :end_column=>58}, {:start_line=>5, :start_column=>1, :end_line=>5, :end_column=>36}, {:start_line=>7, :start_column=>1, :end_line=>10, :end_column=>12}, {:start_line=>7, :start_column=>1, :end_line=>7, :end_column=>11}, {:start_line=>7, :start_column=>4, :end_line=>7, :end_column=>11}, {:start_line=>7, :start_column=>4, :end_line=>7, :end_column=>11}, {:start_line=>8, :start_column=>1, :end_line=>10, :end_column=>12}, {:start_line=>8, :start_column=>4, :end_line=>8, :end_column=>11}, {:start_line=>8, :start_column=>4, :end_line=>8, :end_column=>11}, {:start_line=>9, :start_column=>4, :end_line=>10, :end_column=>12}, {:start_line=>9, :start_column=>4, :end_line=>9, :end_column=>12}, {:start_line=>9, :start_column=>6, :end_line=>9, :end_column=>12}, {:start_line=>9, :start_column=>6, :end_line=>9, :end_column=>12}, {:start_line=>10, :start_column=>4, :end_line=>10, :end_column=>12}, {:start_line=>10, :start_column=>6, :end_line=>10, :end_column=>12}, {:start_line=>10, :start_column=>6, :end_line=>10, :end_column=>12}]
|
98
19
|
|
99
20
|
assert_equal result, sourcepos
|
100
21
|
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.
|
4
|
+
version: 0.17.0
|
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: 2017-
|
12
|
+
date: 2017-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-enum
|