asciidoctor-defmastership 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c34eada26d2c22399f1418c4eef3753832cff1363ff0d82ab1f2308af83ca4
|
4
|
+
data.tar.gz: 95e344b6e198af8ce03fa005a9545a8d256183966547cd5dacd3f2a4fef802ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f860c3c2c9dcc1743495c8f806a9085a5be1ab836bd87f4282902423420157b96e3d0f2b5e61e3d70a95055a955c00e7ff619e1b95462d293f412d4701002d95
|
7
|
+
data.tar.gz: 9918bb1738b73827e6c5071effd3f44b91cc3ddaa607ad06ca2cdea3b25e42f9cd75d4300018f3e9dd1bf28362e3aacbd3251666cfe2a3d9b723f82b83c0e83b
|
@@ -110,7 +110,14 @@ module Asciidoctor
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
def show_ext_ref(matches)
|
114
|
+
@variables['show-ext-ref'] != 'disable' &&
|
115
|
+
@variables["show-#{matches[:refname]}-ext-ref"] != 'disable'
|
116
|
+
end
|
117
|
+
|
113
118
|
def build_external_ref(_line, matches)
|
119
|
+
return [] unless show_ext_ref(matches)
|
120
|
+
|
114
121
|
extrefs = matches[:extrefs].split(/\s*,\s*/)
|
115
122
|
new_line = "[.external_reference]\#{eref-#{matches[:refname]}-prefix} "
|
116
123
|
extref_line = extrefs.map { |ref| build_link(ref, matches) }
|