pandocomatic 2.2.0 → 2.2.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62eb423834e4ee9d18dae3579abbac138fc72ebe470825aa650d196e8d54bf2c
|
|
4
|
+
data.tar.gz: 29954c2b25756e0bef9e544b15eecd054ed74dc29b69edef36a4c13ae0bc4648
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1aa1b36d0421c54a411fbc32bd3649e64d30c38f241eb06d581384d2ce692d8d67a79e04484ac26dbea7f2d7d11abd6ee9ed27abfe674348911a0f212c2c246b
|
|
7
|
+
data.tar.gz: bca6dab5766f7208b2e53061f543edc619dbf1e3d097444d1375a71e5dea090c14dfe6a4dff453409cb3cab6e91676d53aae61b7e7a358bcca96aedaec009465
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
#--
|
|
4
|
-
# Copyright 2017-
|
|
4
|
+
# Copyright 2017-2026, Huub de Beer <Huub@heerdebeer.org>
|
|
5
5
|
#
|
|
6
6
|
# This file is part of pandocomatic.
|
|
7
7
|
#
|
|
@@ -165,14 +165,14 @@ module Pandocomatic
|
|
|
165
165
|
'"--enable pandoc-verbose".'
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
template_log = Pandocomatic::LOG.indent(YAML.dump(template.to_h).sub('---', ''), 34)
|
|
169
|
-
|
|
170
168
|
if @metadata.pandocomatic?
|
|
171
169
|
template.merge! Template.new(INTERNAL_TEMPLATE, @metadata.pandocomatic)
|
|
170
|
+
template_log = Pandocomatic::LOG.indent(YAML.dump(template.to_h).sub('---', ''), 34)
|
|
172
171
|
|
|
173
172
|
Pandocomatic::LOG.debug ' # Selected template mixed with internal template and pandocomatic metadata ' \
|
|
174
173
|
"gives final template:#{template_log}"
|
|
175
174
|
else
|
|
175
|
+
template_log = Pandocomatic::LOG.indent(YAML.dump(template.to_h).sub('---', ''), 34)
|
|
176
176
|
Pandocomatic::LOG.debug " # Selected template:#{template_log}"
|
|
177
177
|
end
|
|
178
178
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# rubocop:disable Metrics
|
|
4
4
|
#--
|
|
5
|
-
# Copyright 2014—
|
|
5
|
+
# Copyright 2014—2026 Huub de Beer <Huub@heerdebeer.org>
|
|
6
6
|
#
|
|
7
7
|
# This file is part of pandocomatic.
|
|
8
8
|
#
|
|
@@ -486,8 +486,9 @@ module Pandocomatic
|
|
|
486
486
|
src_format = PANDOCS_EXTENSION_TO_FORMAT_MAPPING[src_extension]
|
|
487
487
|
end
|
|
488
488
|
|
|
489
|
-
if !src_format || src_format
|
|
490
|
-
# Behave like pandoc: If no source format can be determined, assume markdown
|
|
489
|
+
if !src_format || src_format.match?(/markdown(((\+|-).+)|$)/)
|
|
490
|
+
# Behave like pandoc: If no source format can be determined, assume markdown.
|
|
491
|
+
# If format is markdown, ignore any extensions.
|
|
491
492
|
PandocMetadata.load_file src, ignore_pandocomatic: use_templates?
|
|
492
493
|
else
|
|
493
494
|
PandocMetadata.empty src_format, ignore_pandocomatic: use_templates?
|
data/lib/pandocomatic/version.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
#--
|
|
4
|
-
# Copyright 2023—
|
|
4
|
+
# Copyright 2023—2026 Huub de Beer <Huub@heerdebeer.org>
|
|
5
5
|
#
|
|
6
6
|
# This file is part of pandocomatic.
|
|
7
7
|
#
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
#++
|
|
21
21
|
module Pandocomatic
|
|
22
22
|
# Pandocomatic's current version.
|
|
23
|
-
VERSION = [2, 2,
|
|
23
|
+
VERSION = [2, 2, 1].freeze
|
|
24
24
|
end
|