asciidoctor-fb2 0.4.0 → 0.5.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: 2c92fc77a9c3146a344b615e53430b2a1c33c04688a60a6dd175df173ec5e173
4
- data.tar.gz: 991a87e1cede4126726357252f2bb19e30380912153f1a81a511ee81873124b2
3
+ metadata.gz: c555e2357c435e3c610002145c7b4a58b82d7530047d8fa009d921e2aebbfde5
4
+ data.tar.gz: 6e1a5b3c71aa773f61a0a62bd6239c8e4b921b11d25662c2760fc732d4da777e
5
5
  SHA512:
6
- metadata.gz: 7da4ab8d23af356a2d321b9894d2747cfdf9913931566ace0b3945fb43e9dda32c76b1257e6555607cc3a47940c0e6e480213e395b60f5089120f5d6c2ad9db3
7
- data.tar.gz: 49422fe74cb1ac22574d602a572abc5d79ae66883e20758ed721e7efc579771acf8359aa3acc67d8ad45400d344c8dd6421dab9cda46f04ab25ec358e2f26a0a
6
+ metadata.gz: f0c53813ad5e425649c0725672328ec5b9ce11d25469efe3adf784868a606efd6addba363ca1eba1f8b07a05814d6b7a48e5e3a407444516b6999b792af8ca3e
7
+ data.tar.gz: d71cc775b12df68fa8140c26e3d36268493ddc316c078efee3a4c27d17d7d4c9a0bf56f9f9d22ca586e94607e6e72f658867e5f11cc6316364c6fbfed3571be9
data/CHANGELOG.adoc CHANGED
@@ -7,6 +7,16 @@
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.5.0 (2021-03-31) - @slonopotamus
11
+
12
+ * add support for `indexterm` and `intexterm2` inline macros
13
+ * add support for inline callouts
14
+ * add support for open blocks
15
+ * add support for example blocks
16
+ * fix crash if document contains a page break
17
+ * add support for floating title
18
+ * fix crash if document contains thematic break
19
+
10
20
  == 0.4.0 (2021-02-14) - @slonopotamus
11
21
 
12
22
  * fix table cells markup
data/README.adoc CHANGED
@@ -7,6 +7,7 @@ Marat Radchenko <marat@slonopotamus.org>
7
7
  :uri-ci: {uri-project}/actions?query=branch%3Amaster
8
8
  :uri-gem: https://rubygems.org/gems/{project-handle}
9
9
 
10
+ image:https://img.shields.io/badge/zulip-join_chat-brightgreen.svg[project chat,link=https://asciidoctor.zulipchat.com/]
10
11
  image:https://img.shields.io/gem/v/{project-handle}.svg[Latest Release,link={uri-gem}]
11
12
  image:{uri-project}/workflows/CI/badge.svg?branch=master[Build Status,link={uri-ci}]
12
13
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency 'asciidoctor-diagram', '~> 2.0'
26
26
  s.add_development_dependency 'rake', '~> 13.0'
27
27
  s.add_development_dependency 'rspec', '~> 3.10.0'
28
- s.add_development_dependency 'rubocop', '~> 1.9.0'
28
+ s.add_development_dependency 'rubocop', '~> 1.12.0'
29
29
  s.add_development_dependency 'rubocop-rake', '~> 0.5.0'
30
30
  s.add_development_dependency 'rubocop-rspec', '~> 2.2.0'
31
31
  end
@@ -118,6 +118,21 @@ module Asciidoctor
118
118
  ''
119
119
  end
120
120
 
121
+ # @param _node [Asciidoctor::Block]
122
+ def convert_page_break(_node)
123
+ ''
124
+ end
125
+
126
+ # @param node [Asciidoctor::Block]
127
+ def convert_floating_title(node)
128
+ %(<subtitle id="#{node.id}">#{node.title}</subtitle>)
129
+ end
130
+
131
+ # @param _node [Asciidoctor::Block]
132
+ def convert_thematic_break(_node)
133
+ ''
134
+ end
135
+
121
136
  # @param node [Asciidoctor::Block]
122
137
  def convert_paragraph(node)
123
138
  lines = [
@@ -215,6 +230,14 @@ module Asciidoctor
215
230
  node.text
216
231
  end
217
232
 
233
+ # @param node [Asciidoctor::Block]
234
+ def convert_example(node)
235
+ lines = []
236
+ lines << %(<p><strong>#{node.title}:</strong></p>) if node.title?
237
+ lines << node.content
238
+ lines * "\n"
239
+ end
240
+
218
241
  # @param node [Asciidoctor::Inline]
219
242
  def convert_inline_button(node)
220
243
  %([<strong>#{node.text}</strong>])
@@ -257,6 +280,21 @@ module Asciidoctor
257
280
  %(<image #{image_attrs * ' '}/>)
258
281
  end
259
282
 
283
+ # @param node [Asciidoctor::Inline]
284
+ def convert_inline_indexterm(node)
285
+ node.type == :visible ? node.text : ''
286
+ end
287
+
288
+ # @param node [Asciidoctor::Inline]
289
+ def convert_inline_callout(node)
290
+ %(<strong>(#{node.text})</strong>)
291
+ end
292
+
293
+ # @param node [Asciidoctor::List]
294
+ def convert_colist(node)
295
+ convert_olist(node)
296
+ end
297
+
260
298
  # @param node [Asciidoctor::Block]
261
299
  def convert_image(node)
262
300
  image_attrs = register_binary(node, node.image_uri(node.attr('target')), 'image')
@@ -265,6 +303,11 @@ module Asciidoctor
265
303
  %(<p><image #{image_attrs * ' '}/></p>)
266
304
  end
267
305
 
306
+ # @param node [Asciidoctor::Block]
307
+ def convert_open(node)
308
+ convert_paragraph(node)
309
+ end
310
+
268
311
  # @param doc [Asciidoctor::Document]
269
312
  # @return [Asciidoctor::Document]
270
313
  def root_document(doc)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module FB2
5
- VERSION = '0.4.0'
5
+ VERSION = '0.5.0'
6
6
  end
7
7
  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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marat Radchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-14 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.9.0
103
+ version: 1.12.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.9.0
110
+ version: 1.12.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-rake
113
113
  requirement: !ruby/object:Gem::Requirement