asciidoctor-reducer 1.0.4 → 1.0.5
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 +10 -0
- data/README.adoc +1 -1
- data/lib/asciidoctor/reducer/include_directive_tracker.rb +2 -2
- data/lib/asciidoctor/reducer/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: 8618df3cfe6cc9e6ed5d93fd1cc9a29c6026f2fa9b8fd017098c37cebff3eb05
|
|
4
|
+
data.tar.gz: c1bba0fcd19f6c09176c91caf72f46c338d8116b802c1992b10629e0e776f09a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52e0007d74c7495f44b89bc12ba4c0ab7e378d9050ce069f28655d580deae8268b162e8e223fc21bf05e9d2583355493abb654a781ae22768b8c3e762fb32d7f
|
|
7
|
+
data.tar.gz: 01125c00be7703eaeefe0e2b160c5df2cda937111444b986a6f86df4f02ec36f431e0cdf22b48aa8ea808c2094ccb482dcb22ff26999899d87ef0f49686bcd5c
|
data/CHANGELOG.adoc
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
This document provides a curated view of the changes to Asciidoctor Reducer in each release.
|
|
5
5
|
For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
|
|
6
6
|
|
|
7
|
+
== 1.0.5 (2022-10-15) - @mojavelinux
|
|
8
|
+
|
|
9
|
+
=== Changed
|
|
10
|
+
|
|
11
|
+
* insert `role=include` into link macro that replaces include directive more carefully
|
|
12
|
+
|
|
13
|
+
=== Details
|
|
14
|
+
|
|
15
|
+
{url-repo}/releases/tag/v1.0.5[git tag] | {url-repo}/compare/v1.0.4\...v1.0.5[full diff]
|
|
16
|
+
|
|
7
17
|
== 1.0.4 (2022-10-15) - @mojavelinux
|
|
8
18
|
|
|
9
19
|
=== Changed
|
data/README.adoc
CHANGED
|
@@ -15,8 +15,8 @@ module Asciidoctor::Reducer
|
|
|
15
15
|
result = super
|
|
16
16
|
unless @x_reducer[:include_pushed]
|
|
17
17
|
if ((ln = peek_line true)&.end_with? ']') && !(unresolved = ln.start_with? 'Unresolved directive in ') &&
|
|
18
|
-
directive_lineno == @lineno && (unresolved = ln.start_with? 'link:') && (ln.
|
|
19
|
-
ln = %(#{ln
|
|
18
|
+
directive_lineno == @lineno && (unresolved = ln.start_with? 'link:') && !(ln.include? '[role=')
|
|
19
|
+
ln = ln.sub '[', %([role=include#{ln[-2] == '[' ? '' : ','})
|
|
20
20
|
end
|
|
21
21
|
push_include_replacement directive_lineno, (unresolved ? [ln] : []), 0, unresolved
|
|
22
22
|
end
|