asciidoctor-pdf 2.3.5 → 2.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +21 -0
- data/README.adoc +1 -1
- data/lib/asciidoctor/pdf/converter.rb +4 -3
- data/lib/asciidoctor/pdf/ext/core/file.rb +12 -6
- data/lib/asciidoctor/pdf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1edfb9784918c61fecf4ae9023e92b2961442518878c826994159e8d3232cfb
|
4
|
+
data.tar.gz: 8d55eac503e02ef1191e9827057e29271de5cfa37579f83a2282512699fd2374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26174878c46dfbe3e7f5050945bab49727d8b963c1e95bc76125f7999b62262eda1f29cdeaf03bea86e55bc14a5e480d3f703ed841ce9e1cc5194f6046cd3924
|
7
|
+
data.tar.gz: 9e2193b08b53f91f51c42175ce1d5ba7b589652da25f4e78d392be44e62a0249bd1b05c7ffbb5c9f18c753aefe6e60ad591f7774450d8c328fe3a4a8d5904424
|
data/CHANGELOG.adoc
CHANGED
@@ -5,6 +5,27 @@
|
|
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.7 (2023-04-16) - @mojavelinux
|
9
|
+
|
10
|
+
Bug Fixes::
|
11
|
+
|
12
|
+
* don't crash if source block with custom subs is empty and source highlighter is enabled
|
13
|
+
* add workaround for JRuby on Windows when value of `imagesdir` attribute is absolute and contains non-ASCII characters
|
14
|
+
|
15
|
+
=== Details
|
16
|
+
|
17
|
+
{url-repo}/releases/tag/v2.3.7[git tag] | {url-repo}/compare/v2.3.6\...v2.3.7[full diff]
|
18
|
+
|
19
|
+
== 2.3.6 (2023-04-09) - @mojavelinux
|
20
|
+
|
21
|
+
Bug Fixes::
|
22
|
+
|
23
|
+
* rework `File.absolute_path?` patch so it returns correct response when running on JRuby
|
24
|
+
|
25
|
+
=== Details
|
26
|
+
|
27
|
+
{url-repo}/releases/tag/v2.3.6[git tag] | {url-repo}/compare/v2.3.5\...v2.3.6[full diff]
|
28
|
+
|
8
29
|
== 2.3.5 (2023-03-31) - @mojavelinux
|
9
30
|
|
10
31
|
Enhancements::
|
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.7, 2023-04-16
|
4
4
|
// Settings:
|
5
5
|
:experimental:
|
6
6
|
:idprefix:
|
@@ -1079,8 +1079,9 @@ module Asciidoctor
|
|
1079
1079
|
callouts_enabled = false
|
1080
1080
|
end
|
1081
1081
|
subs[highlight_idx] = :specialcharacters
|
1082
|
+
source_string = node.content || ''
|
1082
1083
|
# NOTE: indentation guards will be added by the source highlighter logic
|
1083
|
-
source_string = expand_tabs unescape_xml (sanitize
|
1084
|
+
source_string = expand_tabs unescape_xml (sanitize source_string, compact: false) unless source_string.empty?
|
1084
1085
|
node.lines.replace saved_lines if saved_lines
|
1085
1086
|
end
|
1086
1087
|
else
|
@@ -3709,7 +3710,7 @@ module Asciidoctor
|
|
3709
3710
|
if logo_image_from_theme
|
3710
3711
|
relative_to_imagesdir = false
|
3711
3712
|
logo_image_path = apply_subs_discretely doc, $1, subs: [:attributes], imagesdir: @themesdir
|
3712
|
-
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless doc.is_uri? logo_image_path
|
3713
|
+
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless (::File.absolute_path? logo_image_path) || (doc.is_uri? logo_image_path)
|
3713
3714
|
else
|
3714
3715
|
relative_to_imagesdir = true
|
3715
3716
|
logo_image_path = $1
|
@@ -3719,7 +3720,7 @@ module Asciidoctor
|
|
3719
3720
|
relative_to_imagesdir = false
|
3720
3721
|
if logo_image_from_theme
|
3721
3722
|
logo_image_path = apply_subs_discretely doc, logo_image_path, subs: [:attributes], imagesdir: @themesdir
|
3722
|
-
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless doc.is_uri? logo_image_path
|
3723
|
+
logo_image_path = ThemeLoader.resolve_theme_asset logo_image_path, @themesdir unless (::File.absolute_path? logo_image_path) || (doc.is_uri? logo_image_path)
|
3723
3724
|
end
|
3724
3725
|
end
|
3725
3726
|
if (::Asciidoctor::Image.target_and_format logo_image_path)[1] == 'pdf'
|
@@ -1,8 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
# NOTE:
|
5
|
-
def
|
6
|
-
(
|
7
|
-
|
8
|
-
end
|
3
|
+
File.singleton_class.prepend (Module.new do
|
4
|
+
# NOTE: see https://github.com/jruby/jruby/issues/7750
|
5
|
+
def absolute_path path, dir = nil
|
6
|
+
return super unless dir && !(absolute_path? path)
|
7
|
+
super File.join dir, path
|
8
|
+
end
|
9
|
+
|
10
|
+
# NOTE: JRuby < 9.4 doesn't implement this method; JRuby 9.4 implements it incorrectly
|
11
|
+
def absolute_path? path
|
12
|
+
(::Pathname.new path).absolute? && !(%r/\A[[:alpha:]][[:alnum:]\-+]*:\/\/\S/.match? path)
|
13
|
+
end
|
14
|
+
end) if RUBY_ENGINE == 'jruby'
|
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.7
|
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: 2023-
|
12
|
+
date: 2023-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: asciidoctor
|