markdown-tables 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/markdown-tables.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1aaa6f30ca45e3ce77e8ebc003103b3d47b715348919bd0b240b0a32d6148a18
|
4
|
+
data.tar.gz: cc637305454b0857a31df0e175dc124940c1773200dabd5f41bb39b6855c5df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15e83df09a6b2907d2f81c9ef1cb92b75568d4a0bdbef7ca39fc940dacf530e24c3fe07c0b42c582c2ab18fd2061f9f916d7d7a1bb75db4ea0616d9b430ef472
|
7
|
+
data.tar.gz: 72fb6639a82086267ba33a34c281b63f877e012fd1a8e7711ecb5f627bfdb2d0411c7a169000f34c8a00eab62d97fe753b81a389b939514ef40709690ebd3fe2
|
data/lib/markdown-tables.rb
CHANGED
@@ -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.
|
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
|
+
date: 2019-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: chrisadegraaf@gmail.com
|