Skip to content

Commit

Permalink
Merge pull request #61 from kmuto/release150
Browse files Browse the repository at this point in the history
v1.5.0リリース
  • Loading branch information
kmuto authored Jul 3, 2023
2 parents 1fec901 + 4bb0111 commit 1177b6e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
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

0 comments on commit 1177b6e

Please sign in to comment.