markdown-tables 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/markdown-tables.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f9a4a8a0af1a3674057900b23c880cd290a41f9221d396f4bf9938a4fc1ec56
4
- data.tar.gz: 42111e3deed6d67e98514cbd1cda671c7e20beaa31a1cf55438070cb2f38f35d
3
+ metadata.gz: 1aaa6f30ca45e3ce77e8ebc003103b3d47b715348919bd0b240b0a32d6148a18
4
+ data.tar.gz: cc637305454b0857a31df0e175dc124940c1773200dabd5f41bb39b6855c5df1
5
5
  SHA512:
6
- metadata.gz: 2b1a76e5fcdc1e030251ca13e164ec79d6ffde0573156693f1211b469f9522b497bdec24bced8cb2b927df7800d8bd7c05224aaec3d11ddd7c9cca1e4566c23b
7
- data.tar.gz: 81880eec0b6c8d4f3595074aaa6d36c741c722323131a27d2eed68cfc1f64fa555257338924c09cfa04eaaeea424f8da0a6f30d953a32b74a034bd3efbada1c6
6
+ metadata.gz: 15e83df09a6b2907d2f81c9ef1cb92b75568d4a0bdbef7ca39fc940dacf530e24c3fe07c0b42c582c2ab18fd2061f9f916d7d7a1bb75db4ea0616d9b430ef472
7
+ data.tar.gz: 72fb6639a82086267ba33a34c281b63f877e012fd1a8e7711ecb5f627bfdb2d0411c7a169000f34c8a00eab62d97fe753b81a389b939514ef40709690ebd3fe2
@@ -43,7 +43,7 @@ class MarkdownTables
43
43
  md_table !~ // && raise('Invalid input')
44
44
 
45
45
  # Split the table into lines to get the labels, rows, and alignments.
46
- lines = md_table.split("\n")
46
+ lines = md_table.split("\n").map { |l| l.gsub(/^\||\|$/, '') }
47
47
  alignments = lines[1].split('|')
48
48
  # labels or rows might have some empty values but alignments
49
49
  # is guaranteed to be of the right width.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown-tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris de Graaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-11 00:00:00.000000000 Z
11
+ date: 2019-03-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: chrisadegraaf@gmail.com