asciidoctor-fb2 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -2
- data/CHANGELOG.adoc +7 -1
- data/README.adoc +1 -1
- data/asciidoctor-fb2.gemspec +1 -1
- data/lib/asciidoctor_fb2.rb +7 -2
- data/lib/asciidoctor_fb2/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fefb6e896cf8679642198ac1ffe5222916781f71cbb775130bf32eeb00b375b4
|
4
|
+
data.tar.gz: 5100ec044994316213786b065115f6214ca4dd29c4f8655fc3a9ffc42726d258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '099b2149b1dacc1a1239725ce386afdc48ff7429a6aa7e0108af80db0c84630c176ec6adf96090f671c7a51bd1140590d920133ba4de76788e239fe490951317'
|
7
|
+
data.tar.gz: 7418059f5dd43b7f77087acac3af70764e80af4dc676be995c9d421edd01dd89008b11926c36151b6832b1c137684236cad3b00a12b6798a5747d23690089c7c
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG.adoc
CHANGED
@@ -1,12 +1,18 @@
|
|
1
1
|
= {project-name} Changelog
|
2
2
|
:project-name: Asciidoctor FB2
|
3
3
|
:project-handle: asciidoctor-fb2
|
4
|
-
:slug:
|
4
|
+
:slug: asciidoctor/{project-handle}
|
5
5
|
:uri-project: https://github.com/{slug}
|
6
6
|
|
7
7
|
This document provides a high-level view of the changes to the {project-name} by release.
|
8
8
|
For a detailed view of what has changed, refer to the {uri-project}/commits/master[commit history] on GitHub.
|
9
9
|
|
10
|
+
== 0.3.1 (2020-11-29) - @slonopotamus
|
11
|
+
|
12
|
+
* fix crash on `+toc::[]+` macro
|
13
|
+
* avoid adding `notes` body to FB2 if document doesn't have any footnotes
|
14
|
+
* fix invalid XML syntax for table cells
|
15
|
+
|
10
16
|
== 0.3.0 (2020-11-25) - @slonopotamus
|
11
17
|
|
12
18
|
* output MIME type for FB2 embedded binary files. https://github.com/slonopotamus/asciidoctor-fb2/issues/19[#19]
|
data/README.adoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Marat Radchenko <marat@slonopotamus.org>
|
3
3
|
:project-name: Asciidoctor FB2
|
4
4
|
:project-handle: asciidoctor-fb2
|
5
|
-
:slug:
|
5
|
+
:slug: asciidoctor/{project-handle}
|
6
6
|
:uri-project: https://github.com/{slug}
|
7
7
|
:uri-ci: {uri-project}/actions?query=branch%3Amaster
|
8
8
|
:uri-gem: https://rubygems.org/gems/{project-handle}
|
data/asciidoctor-fb2.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ['Marat Radchenko']
|
9
9
|
s.email = ['marat@slonopotamus.org']
|
10
10
|
s.summary = 'Converts AsciiDoc documents to FB2 e-book formats'
|
11
|
-
s.homepage = 'https://github.com/
|
11
|
+
s.homepage = 'https://github.com/asciidoctor/asciidoctor-fb2'
|
12
12
|
s.license = 'MIT'
|
13
13
|
s.required_ruby_version = '>= 2.4.0'
|
14
14
|
|
data/lib/asciidoctor_fb2.rb
CHANGED
@@ -82,7 +82,7 @@ module Asciidoctor
|
|
82
82
|
#{node.content}
|
83
83
|
</section>)
|
84
84
|
@book.bodies << FB2rb::Body.new(nil, body)
|
85
|
-
|
85
|
+
unless node.document.footnotes.empty?
|
86
86
|
notes = []
|
87
87
|
node.document.footnotes.each do |footnote|
|
88
88
|
notes << %(<section id="note-#{footnote.index}">
|
@@ -115,6 +115,11 @@ module Asciidoctor
|
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
118
|
+
# @param _node [Asciidoctor::Block]
|
119
|
+
def convert_toc(_node)
|
120
|
+
''
|
121
|
+
end
|
122
|
+
|
118
123
|
# @param node [Asciidoctor::Block]
|
119
124
|
def convert_paragraph(node)
|
120
125
|
lines = [
|
@@ -408,7 +413,7 @@ module Asciidoctor
|
|
408
413
|
]
|
409
414
|
cell_attrs << %(colspan="#{cell.colspan}") if cell.colspan
|
410
415
|
cell_attrs << %(rowspan="#{cell.rowspan}") if cell.rowspan
|
411
|
-
lines << %(<#{cell_tag_name} #{cell_attrs * ' '}
|
416
|
+
lines << %(<#{cell_tag_name} #{cell_attrs * ' '}>#{cell_content}</#{cell_tag_name}>)
|
412
417
|
end
|
413
418
|
lines << '</tr>'
|
414
419
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-fb2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marat Radchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -151,7 +151,7 @@ files:
|
|
151
151
|
- tasks/console.rake
|
152
152
|
- tasks/rspec.rake
|
153
153
|
- tasks/rubocop.rake
|
154
|
-
homepage: https://github.com/
|
154
|
+
homepage: https://github.com/asciidoctor/asciidoctor-fb2
|
155
155
|
licenses:
|
156
156
|
- MIT
|
157
157
|
metadata: {}
|