Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.5.0リリース #61

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pandoc2review file > file.re

## Copyright

Copyright 2020-2021 Kenshi Muto
Copyright 2020-2023 Kenshi Muto

GNU General Public License Version 2

Expand All @@ -57,6 +57,9 @@ GNU General Public License Version 2
- [@takahashim](https://github.com/takahashim)

## Changelog
### 1.5.0
- Support Pandoc 3.

### 1.4.0
- Fix an error when empty div block is received.
- Introduce '--strip-emptydev' to strip empty block `//{-//}`, produced by TeX file.
Expand Down
11 changes: 8 additions & 3 deletions lib/pandoc2review.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2020-2021 Kenshi Muto
# Copyright 2020-2023 Kenshi Muto
require 'optparse'
require 'unicode/eaw'
require 'pathname'
Expand Down Expand Up @@ -55,7 +55,7 @@ def parse_args
@stripemptydev = nil
opts = OptionParser.new
opts.banner = 'Usage: pandoc2review [option] file [file ...]'
opts.version = '1.4'
opts.version = '1.5'

opts.on('--help', 'Prints this message and quit.') do
puts opts.help
Expand All @@ -74,7 +74,12 @@ def parse_args
@stripemptydev = true
end

opts.parse!(ARGV)
begin
opts.parse!(ARGV)
rescue OptionParser::ParseError
puts opts.help
exit 1
end
if ARGV.size != 1
puts opts.help
exit 0
Expand Down
2 changes: 2 additions & 0 deletions lua/filters.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- Copyright 2020-2023 atusy and Kenshi Muto

local function review_inline(x)
return pandoc.RawInline("review", x)
end
Expand Down
2 changes: 1 addition & 1 deletion lua/review.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- -*- coding: utf-8 -*-
-- Re:VIEW Writer for Pandoc
-- Copyright 2020 Kenshi Muto
-- Copyright 2020-2023 atusy and Kenshi Muto

-- config
local config = {
Expand Down
2 changes: 1 addition & 1 deletion pandoc2review.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = "pandoc2review"
spec.version = "1.4.0"
spec.version = "1.5.0"
spec.authors = ["Kenshi Muto"]
spec.email = ["[email protected]"]
spec.license = "GPL-2.0"
Expand Down