hiki2md 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hiki2md.rb +13 -13
  3. data/lib/hiki2md/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3144012b65184c7a5362f65f9f004d1c9bcbeff3
4
- data.tar.gz: a4424168aab76259fe55e50e2dd3116d65a3b806
3
+ metadata.gz: 75c588c94f143ff7531246991a1f1cd286e4d22d
4
+ data.tar.gz: 9acce914fec1459b92dac42914badf6b4861bff6
5
5
  SHA512:
6
- metadata.gz: d3eafa88b9204d1284124bceb9aca242a5084df2d2c160e7c90eaecfb85bda7037b54193e9aef4d4012d1286deeb05eeafe58fada04db20d5ea3b3cbb0bd9aa5
7
- data.tar.gz: a8639a667f70cfc182f997ea78e8084df40072736c8ade63834a305a4416fd40184a5e9efc8daa6571eb0e66224d4f8fc5d95ac2689fbba674d19037fc7bd49a
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
 
@@ -1,3 +1,3 @@
1
1
  class Hiki2md
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-15 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler