commonmarker 0.14.12 → 0.14.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a015aaeb69ca5f1327153c39510e7332a026edb9
4
- data.tar.gz: f4e6f1335b41cb4dde587885d57ff83772145d9f
3
+ metadata.gz: 3831ae7665e14681344f9cefb50e6e79200087a6
4
+ data.tar.gz: 937ba73e3f900097378ebcad059368fb8f27071f
5
5
  SHA512:
6
- metadata.gz: 62b54bd99c11cf1243d755ad88c9dcc1f8f4fc1923ab2112daf39ae25a41a7405cbe543241cc748468c507b5d28722f08cb952ae75603be9422abb57b1eb42a9
7
- data.tar.gz: 5e35ac20ba1d0347a55678326eeea21c814791ee7f1f4cc0bf1b35596a93cc0ec7e94d29e8564897d23a7790f9316560a4b01801c6c9b12f03d07f82c592514f
6
+ metadata.gz: a06a81a340b669d47db95c45455cdc0f65d7a216e8efdd2d455232f41facb3c8d30a72f651215947234550005ee3ea3dcd7a3b726e39ee24f35cf1b9e892e3c2
7
+ data.tar.gz: 935bc17d51a5223eba52beac774af9346fef6e7b1ede3a58cf7734992fc9e173eb3b1f5d8e50fff914f874ec6c4f537d83018a1ff5747367f9da4c01831edbc2
data/commonmarker.gemspec CHANGED
@@ -8,8 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.version = CommonMarker::VERSION
9
9
  s.summary = 'CommonMark parser and renderer. Written in C, wrapped in Ruby.'
10
10
  s.description = 'A fast, safe, extensible parser for CommonMark. This wraps the official libcmark library.'
11
- s.authors = ['Garen Torikian']
12
- s.email = ['gjtorikian@gmail.com']
11
+ s.authors = ['Garen Torikian', 'Yuki Izumi']
13
12
  s.homepage = 'http://github.com/gjtorikian/commonmarker'
14
13
  s.license = 'MIT'
15
14
  s.required_ruby_version = '>= 2.0.0'
@@ -151,11 +151,8 @@ static cmark_node *consume_until_pipe_or_eol(cmark_syntax_extension *self,
151
151
  } else {
152
152
  pipe -= *offset;
153
153
 
154
- if (pipe) {
155
- child->as.literal = cmark_chunk_dup(&node->as.literal, *offset, pipe);
156
- cmark_node_own(child);
157
- } else
158
- cmark_node_free(child);
154
+ child->as.literal = cmark_chunk_dup(&node->as.literal, *offset, pipe);
155
+ cmark_node_own(child);
159
156
 
160
157
  *offset += pipe + 1;
161
158
  if (*offset >= node->as.literal.len) {
@@ -181,6 +178,8 @@ static cmark_node *consume_until_pipe_or_eol(cmark_syntax_extension *self,
181
178
  return NULL;
182
179
  }
183
180
 
181
+ cmark_consolidate_text_nodes(result);
182
+
184
183
  if (result->first_child->type == CMARK_NODE_TEXT) {
185
184
  cmark_chunk c = cmark_chunk_ltrim_new(parser->mem, &result->first_child->as.literal);
186
185
  cmark_chunk_free(parser->mem, &result->first_child->as.literal);
@@ -193,7 +192,6 @@ static cmark_node *consume_until_pipe_or_eol(cmark_syntax_extension *self,
193
192
  result->last_child->as.literal = c;
194
193
  }
195
194
 
196
- cmark_consolidate_text_nodes(result);
197
195
  return result;
198
196
  }
199
197
 
@@ -404,6 +404,29 @@ Here's a link to [Freedom Planet 2][].
404
404
  </tr></tbody></table>
405
405
  ````````````````````````````````
406
406
 
407
+ ### Sequential cells
408
+
409
+ ```````````````````````````````` example
410
+ | a | b | c |
411
+ | --- | --- | --- |
412
+ | d || e |
413
+ .
414
+ <table>
415
+ <thead>
416
+ <tr>
417
+ <th>a</th>
418
+ <th>b</th>
419
+ <th>c</th>
420
+ </tr>
421
+ </thead>
422
+ <tbody>
423
+ <tr>
424
+ <td>d</td>
425
+ <td></td>
426
+ <td>e</td>
427
+ </tr></tbody></table>
428
+ ````````````````````````````````
429
+
407
430
 
408
431
  ## Strikethroughs
409
432
 
@@ -1,3 +1,3 @@
1
1
  module CommonMarker
2
- VERSION = '0.14.12'.freeze
2
+ VERSION = '0.14.13'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmarker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.12
4
+ version: 0.14.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
+ - Yuki Izumi
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
12
+ date: 2017-03-26 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: ruby-enum
@@ -110,8 +111,7 @@ dependencies:
110
111
  version: '5.1'
111
112
  description: A fast, safe, extensible parser for CommonMark. This wraps the official
112
113
  libcmark library.
113
- email:
114
- - gjtorikian@gmail.com
114
+ email:
115
115
  executables:
116
116
  - commonmarker
117
117
  extensions: