hiki2md 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiki2md.rb +13 -13
- data/lib/hiki2md/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75c588c94f143ff7531246991a1f1cd286e4d22d
|
4
|
+
data.tar.gz: 9acce914fec1459b92dac42914badf6b4861bff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81094c8d50da145dfd50b7ac42a1965404e87302185beeaa156f7f9e5d0f2162fe6a5a1ed3ac593c0c8e16bc7713b2470327c3cad59633c38dc5a48595634575
|
7
|
+
data.tar.gz: 0b862ccd85bcd0f374a89b06a2b4abf5bbde43ed965e6723b6e1df1d1f099a3c27f0de8fddfed40f7ef370cc974c69de742ee2b69c89be180297014d3a54b70b
|
data/lib/hiki2md.rb
CHANGED
@@ -26,19 +26,6 @@ class Hiki2md
|
|
26
26
|
@in_plugin_block = true
|
27
27
|
end
|
28
28
|
|
29
|
-
# テーブル
|
30
|
-
if line =~ /\A\|\|/
|
31
|
-
@in_table_block = true
|
32
|
-
@table_contents << line
|
33
|
-
next
|
34
|
-
end
|
35
|
-
|
36
|
-
if @in_table_block
|
37
|
-
@outputs << make_table(@table_contents)
|
38
|
-
@in_table_block = false
|
39
|
-
@table_contents = []
|
40
|
-
end
|
41
|
-
|
42
29
|
# 整形済みテキスト(複数行)
|
43
30
|
if @in_multiline_preformatted_block
|
44
31
|
if line =~ /\A>>>/
|
@@ -125,6 +112,19 @@ class Hiki2md
|
|
125
112
|
# 画像
|
126
113
|
line.gsub! /\[{2}([^\[\]\|]+?)\]{2}/, "![](\\1)"
|
127
114
|
|
115
|
+
# テーブル
|
116
|
+
if line =~ /\A\|\|/
|
117
|
+
@in_table_block = true
|
118
|
+
@table_contents << line
|
119
|
+
next
|
120
|
+
end
|
121
|
+
|
122
|
+
if @in_table_block
|
123
|
+
@outputs << make_table(@table_contents)
|
124
|
+
@in_table_block = false
|
125
|
+
@table_contents = []
|
126
|
+
end
|
127
|
+
|
128
128
|
@outputs << line
|
129
129
|
end
|
130
130
|
|
data/lib/hiki2md/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiki2md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masanori Kado
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|