asciidoctor-pdf 2.3.3 → 2.3.4
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/CHANGELOG.adoc +11 -0
- data/README.adoc +5 -2
- data/asciidoctor-pdf.gemspec +1 -1
- data/lib/asciidoctor/pdf/converter.rb +2 -1
- data/lib/asciidoctor/pdf/ext/asciidoctor/document.rb +1 -1
- data/lib/asciidoctor/pdf/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7fc3e4ac6264ca5d67d9c980104469ff87c54c52e869eec934a70bb938b99ca
|
4
|
+
data.tar.gz: 941b80f09b9828d4320f7e18dda3ec984885ef7cd9e6e71e7066692ce795814b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09df883eb6acf49084ae6b504c6f7c4a51cc9d3e1aa5119c960931c44d74bf65c7838a704b4a45d07bcf2b6a3089bd52e3ae76d5f8c29fe98cb2cac05cf1fec0'
|
7
|
+
data.tar.gz: f1a1bfdb597da670a59cebf59bd4989afe5f342cc4be4c1cc76a5f8fa6704d367395e5d7684a2c8d48f57cc5116ff422237c9e672a5ab9bdb2db6da21b9d98d5
|
data/CHANGELOG.adoc
CHANGED
@@ -5,6 +5,17 @@
|
|
5
5
|
This document provides a high-level view of the changes to the {project-name} by release.
|
6
6
|
For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
|
7
7
|
|
8
|
+
== 2.3.4 (2022-10-29) - @mojavelinux
|
9
|
+
|
10
|
+
Bug Fixes::
|
11
|
+
|
12
|
+
* resolve attribute references in target of image in running content (#2361)
|
13
|
+
* replace use of AbstractNode#role= method to ensure compatiblity with minimum supported version of Asciidoctor (Asciidoctor 2.0.10) (#2363)
|
14
|
+
|
15
|
+
=== Details
|
16
|
+
|
17
|
+
{url-repo}/releases/tag/v2.3.4[git tag] | {url-repo}/compare/v2.3.3\...v2.3.4[full diff]
|
18
|
+
|
8
19
|
== 2.3.3 (2022-10-21) - @mojavelinux
|
9
20
|
|
10
21
|
Bug Fixes::
|
data/README.adoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= Asciidoctor PDF: A native PDF converter for AsciiDoc
|
2
2
|
Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
|
3
|
-
v2.3.
|
3
|
+
v2.3.4, 2022-10-29
|
4
4
|
// Settings:
|
5
5
|
:experimental:
|
6
6
|
:idprefix:
|
@@ -68,7 +68,8 @@ TIP: For the latest Asciidoctor PDF features and fixes, see {url-project-docs}/w
|
|
68
68
|
|
69
69
|
== Prerequisites
|
70
70
|
|
71
|
-
Asciidoctor PDF is
|
71
|
+
Asciidoctor PDF is built on Asciidoctor.
|
72
|
+
Like Asciidoctor, Asciidoctor PDF is a Ruby application.
|
72
73
|
Therefore, to use it, you'll need a Ruby runtime.
|
73
74
|
|
74
75
|
The supported Ruby runtimes are Ruby 2.7 or greater and JRuby 9.2 or greater.
|
@@ -93,6 +94,8 @@ Pass the name of the gem to the `gem install` command as follows:
|
|
93
94
|
|
94
95
|
Installing Asciidoctor PDF will install a number of other gems mentioned in these docs, including asciidoctor, prawn, prawn-svg, prawn-table, prawn-icon, and ttfunk.
|
95
96
|
For the most part, the versions of these dependencies are locked to the version of Asciidoctor PDF.
|
97
|
+
The patch versions are allowed to vary.
|
98
|
+
Please note that the minimum supported version of the asciidoctor gem (Asciidoctor) is 2.0.10.
|
96
99
|
|
97
100
|
For further installation information about installing Asciidoctor PDF, see {url-project-docs}/install/[the installation documentation].
|
98
101
|
For troubleshooting help, see {url-project-docs}/install/#installation-troubleshooting[Installation troubleshooting].
|
data/asciidoctor-pdf.gemspec
CHANGED
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.add_runtime_dependency 'treetop', '~> 1.6.0'
|
45
45
|
|
46
46
|
s.add_development_dependency 'rake', '~> 13.0.0'
|
47
|
-
s.add_development_dependency 'rspec', '~> 3.
|
47
|
+
s.add_development_dependency 'rspec', '~> 3.12.0'
|
48
48
|
s.add_development_dependency 'pdf-inspector', '~> 1.3.0'
|
49
49
|
s.add_development_dependency 'chunky_png', '~> 1.4.0'
|
50
50
|
end
|
@@ -765,7 +765,7 @@ module Asciidoctor
|
|
765
765
|
def convert_preamble node
|
766
766
|
# FIXME: core should not be promoting paragraph to preamble if there are no sections
|
767
767
|
if (first_block = node.first_child)&.context == :paragraph && node.document.sections? && !first_block.role?
|
768
|
-
first_block.role
|
768
|
+
first_block.set_attr 'role', 'lead'
|
769
769
|
end
|
770
770
|
traverse node
|
771
771
|
theme_margin :block, :bottom, (next_enclosed_block node)
|
@@ -3435,6 +3435,7 @@ module Asciidoctor
|
|
3435
3435
|
attrlist = $2
|
3436
3436
|
image_attrs = (AttributeList.new attrlist).parse %w(alt width)
|
3437
3437
|
image_path, image_format = ::Asciidoctor::Image.target_and_format $1, image_attrs
|
3438
|
+
image_path = apply_subs_discretely doc, image_path, subs: [:attributes], imagesdir: @themesdir
|
3438
3439
|
if (image_path = resolve_image_path doc, image_path, image_format, @themesdir) && (::File.readable? image_path)
|
3439
3440
|
image_opts = resolve_image_options image_path, image_format, image_attrs, container_size: [colspec_dict[side][position][:width], trim_content_height[side]]
|
3440
3441
|
side_content[position] = [image_path, image_opts, image_attrs['link']]
|
@@ -13,7 +13,7 @@ class Asciidoctor::Document
|
|
13
13
|
preface.id = preface.generate_id
|
14
14
|
if (first_child = blk0.blocks[0])&.option? 'notitle'
|
15
15
|
preface.set_option 'notitle'
|
16
|
-
first_child.role
|
16
|
+
first_child.set_attr 'role', 'lead' if first_child.context == :paragraph && !first_child.role?
|
17
17
|
end
|
18
18
|
preface.blocks.replace (blk0.blocks.map do |b|
|
19
19
|
b.parent = preface
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Allen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-10-
|
12
|
+
date: 2022-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: asciidoctor
|
@@ -157,14 +157,14 @@ dependencies:
|
|
157
157
|
requirements:
|
158
158
|
- - "~>"
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: 3.
|
160
|
+
version: 3.12.0
|
161
161
|
type: :development
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - "~>"
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: 3.
|
167
|
+
version: 3.12.0
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: pdf-inspector
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|