pandoc2review 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0437acc736fdce582e891d04ac0587ee4f9889a2a86843def84bfef7defaa228
4
- data.tar.gz: '082e94942eeb5261926c64174e21cb6aa572baec46ce7e91f173cd3c6cea5310'
3
+ metadata.gz: a5671aaebdb1909371f608bb0812d18f101827b5ccc06ee80532b48928d0f158
4
+ data.tar.gz: 568f9cee83013a84b9a11691c4420e62b174fec7a88e5898b0a3ba565e0b2e52
5
5
  SHA512:
6
- metadata.gz: 49cf9887d54bc353b55395064da8c2cfad009914a28d571e5dde31a72a5ce5c2b96aefb61eeb4035c091f30929540c20a2bedd17855f3eae9f2924455d136dcc
7
- data.tar.gz: af11f5cfb1ef36f248ccfec424cc2fad2fcec7e575b3af47f6f160ddfe508515bb5002b605b5c967302236528550140c3fce7a60d724fc0009d46ccd754a65d1
6
+ metadata.gz: 15129e6dffb240ca58c4da70834d4f16488da5b752c3302f313c9d0ff74eb614ec7d9e9d2615f688085b089035a9c8b3b32e8822470c6b0635c9bdb2427ea8c3
7
+ data.tar.gz: 60a7d8451a10be4a98f21f9a5c0b934f5fe95cc7637aad9e1951dca092a3ab21d78b3838815ca0de95584b932085cdede8c8f0cfa86bcf5c135bef44d6514fd8
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # pandoc2review
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/pandoc2review.svg)](https://badge.fury.io/rb/pandoc2review)
3
4
  [![Build Status](https://github.com/kmuto/pandoc2review/workflows/Pandoc/badge.svg)](https://github.com/kmuto/pandoc2review/actions)
4
5
 
5
6
  - [日本語での説明](#日本語での説明)
@@ -11,6 +12,11 @@
11
12
 
12
13
  ## Installation
13
14
 
15
+ ### RubyGems. Recommended
16
+ 1. Setup [Ruby](https://www.ruby-lang.org/) (any versions) and [Pandoc](https://pandoc.org/) (newer is better).
17
+ 2. Do `gem install pandoc2review`.
18
+
19
+ ### Custom
14
20
  1. Setup [Ruby](https://www.ruby-lang.org/) (any versions) and [Pandoc](https://pandoc.org/) (newer is better).
15
21
  2. Clone this repository, or download release file and extract somewhere.
16
22
  3. Do `bundle install` in extracted `pandoc2review` folder.
@@ -51,6 +57,9 @@ GNU General Public License Version 2
51
57
  - [@takahashim](https://github.com/takahashim)
52
58
 
53
59
  ## Changelog
60
+ ### 1.3.0
61
+ - Fix "attempt to index global 'first' (a nil value)" error in a docx file.
62
+
54
63
  ### 1.2.0
55
64
  - Release gem file for RubyGems.
56
65
  - Refactoring for gem style.
@@ -75,7 +84,11 @@ GNU General Public License Version 2
75
84
  - **ユースケース 2:** Markdown を原稿形式として使い続けながら、Re:VIEW の組版環境を使うことができます。
76
85
 
77
86
  ## インストール
87
+ ### RubyGems (推奨)
88
+ 1. [Ruby](https://www.ruby-lang.org/) (バージョンは問いません) および [Pandoc](https://pandoc.org/) (新しいものほどよいです) をセットアップします。
89
+ 2. `gem install pandoc2review` を実行します。
78
90
 
91
+ ### カスタム
79
92
  1. [Ruby](https://www.ruby-lang.org/) (バージョンは問いません) および [Pandoc](https://pandoc.org/) (新しいものほどよいです) をセットアップします。
80
93
  2. このリポジトリをクローンするか、リリースファイルをダウンロードして適当な場所に展開します。
81
94
  3. 展開した `pandoc2review` フォルダ内で、`bundle install` を実行します。
data/lib/pandoc2review.rb CHANGED
@@ -50,7 +50,7 @@ class Pandoc2ReVIEW
50
50
  @hideraw = nil
51
51
  opts = OptionParser.new
52
52
  opts.banner = 'Usage: pandoc2review [option] file [file ...]'
53
- opts.version = '1.2'
53
+ opts.version = '1.3'
54
54
 
55
55
  opts.on('--help', 'Prints this message and quit.') do
56
56
  puts opts.help
data/lua/filters.lua CHANGED
@@ -137,7 +137,7 @@ end
137
137
  local function noindent(para)
138
138
  first = para.content[1]
139
139
 
140
- if ((first.tag == "RawInline") and
140
+ if (first and (first.tag == "RawInline") and
141
141
  (first.format == "tex") and
142
142
  (first.text:match("^\\noindent%s*"))) then
143
143
  para.content[1] = review_inline("//noindent\n")
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "pandoc2review"
3
- spec.version = "1.2.0"
3
+ spec.version = "1.3.0"
4
4
  spec.authors = ["Kenshi Muto"]
5
5
  spec.email = ["kmuto@kmuto.jp"]
6
6
  spec.license = "GPL-2.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandoc2review
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenshi Muto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-04 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unicode-eaw