asciidoctor-pdf 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +10 -0
- data/README.adoc +1 -1
- data/lib/asciidoctor/pdf/converter.rb +1 -1
- data/lib/asciidoctor/pdf/theme_loader.rb +1 -2
- data/lib/asciidoctor/pdf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eae246bb9ba9b068763fadb7bc2901bc197ab65ca6cc49b8e3c3b3d36441aa9
|
4
|
+
data.tar.gz: 9411f0b4bf09f4a7ab21d24e8ab15d715fb8a5458a46efb78d342efeb9de4299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b069fca84205e6e28b4915ed973a21d246c8a3ebbe6e80cca2c3c8155633312f95f3abbfbb24f5f5a5e6c6c304e76ac7bb34e453ef754a1cfd3ee89b99315448
|
7
|
+
data.tar.gz: c97b461899b43c92e350a7b00ba258b9fe216ddac4739d7a1370628c68a3dac263afb896e2827a019c8219f4962c7bf766dc62850efa64b3b07eef7470f90543
|
data/CHANGELOG.adoc
CHANGED
@@ -5,6 +5,16 @@
|
|
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.2 (2022-09-17) - @mojavelinux
|
9
|
+
|
10
|
+
Improvements::
|
11
|
+
|
12
|
+
* provide fallback value for `base-font-size` theme key before processing keys (#2342)
|
13
|
+
|
14
|
+
=== Details
|
15
|
+
|
16
|
+
{url-repo}/releases/tag/v2.3.2[git tag] | {url-repo}/compare/v2.3.1\...v2.3.2[full diff]
|
17
|
+
|
8
18
|
== 2.3.1 (2022-09-17) - @mojavelinux
|
9
19
|
|
10
20
|
Improvements::
|
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.2, 2022-09-17
|
4
4
|
// Settings:
|
5
5
|
:experimental:
|
6
6
|
:idprefix:
|
@@ -557,7 +557,7 @@ module Asciidoctor
|
|
557
557
|
def prepare_theme theme
|
558
558
|
theme.base_border_color = nil if theme.base_border_color == 'transparent'
|
559
559
|
theme.base_font_color ||= '000000'
|
560
|
-
theme.
|
560
|
+
theme.base_font_family ||= 'Helvetica'
|
561
561
|
theme.base_font_style = theme.base_font_style&.to_sym || :normal
|
562
562
|
theme.page_numbering_start_at ||= 'body'
|
563
563
|
theme.running_content_start_at ||= 'body'
|
@@ -78,12 +78,11 @@ module Asciidoctor
|
|
78
78
|
if theme_path == BaseThemePath
|
79
79
|
load_base_theme
|
80
80
|
else
|
81
|
-
theme_data = load_file theme_path,
|
81
|
+
theme_data = load_file theme_path, (::OpenStruct.new base_font_size: 12), theme_dir
|
82
82
|
unless (::File.dirname theme_path) == ThemesDir
|
83
83
|
theme_data.base_text_align ||= 'left'
|
84
84
|
theme_data.base_line_height ||= 1
|
85
85
|
theme_data.base_font_color ||= '000000'
|
86
|
-
theme_data.base_font_size ||= 12
|
87
86
|
theme_data.code_font_family ||= (theme_data.codespan_font_family || 'Courier')
|
88
87
|
theme_data.conum_font_family ||= (theme_data.codespan_font_family || 'Courier')
|
89
88
|
if (heading_font_family = theme_data.heading_font_family)
|