pandoc2review 1.2.0 → 1.3.0
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/README.md +13 -0
- data/lib/pandoc2review.rb +1 -1
- data/lua/filters.lua +1 -1
- data/pandoc2review.gemspec +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: a5671aaebdb1909371f608bb0812d18f101827b5ccc06ee80532b48928d0f158
|
|
4
|
+
data.tar.gz: 568f9cee83013a84b9a11691c4420e62b174fec7a88e5898b0a3ba565e0b2e52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15129e6dffb240ca58c4da70834d4f16488da5b752c3302f313c9d0ff74eb614ec7d9e9d2615f688085b089035a9c8b3b32e8822470c6b0635c9bdb2427ea8c3
|
|
7
|
+
data.tar.gz: 60a7d8451a10be4a98f21f9a5c0b934f5fe95cc7637aad9e1951dca092a3ab21d78b3838815ca0de95584b932085cdede8c8f0cfa86bcf5c135bef44d6514fd8
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# pandoc2review
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/pandoc2review)
|
|
3
4
|
[](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
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")
|
data/pandoc2review.gemspec
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unicode-eaw
|