asciidoctor-defmastership 1.0.8 → 1.0.9

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: d012bdd9c28ef271bbb1f65b6df7b46b1c4b423fb4445e8e55c4bdb73f7a43de
4
- data.tar.gz: 58ce5fc184f48878c8b7cd904e049a9a87bbb76d5a977beba4b0fad7a661cbfd
3
+ metadata.gz: 120879775fb430f58cc83b38f54a85a783e53c13a303f21aa1d53b140afe534c
4
+ data.tar.gz: 2dd09334b90b48c2d3fec43e8ba64a456ae00c13771113bae1655ac90d3451ef
5
5
  SHA512:
6
- metadata.gz: 76fe2d67b3827039dd4d974c7bf329a417d7edfc57bf5d42542092055fd9e8c54d0169e5b36213b6777acefc267cbce4e2aedae877ba7bc5ff6316a9c428a888
7
- data.tar.gz: cd455d7722292309de19cf3788d9735a18fd6bd85bc7cab48f5165d9d3eaa61682fbdae70839884c649795f5155b0907b64f222affc1456d5fe9ab6f3023aead
6
+ metadata.gz: ef6a6b74bc6486b24cad993dad606b6a4d7d1730344c074af2fd9792fa94492730f80933bd262149963b5501e9c53ab41ce6b2a06cb61aa3ec770c3f176b06a9
7
+ data.tar.gz: 71c5ca0517d3766e4cd880ceccbca363f723859636d11cf2618ddf2590f73d19658ef15cdb71fe4ae13b5e283fefc4ac12ce2f45607bb9788eb1e7c2fd366a1c
@@ -126,7 +126,11 @@ module Asciidoctor
126
126
  refname = matches[:reference]
127
127
  return ref unless @has_url.include?(refname)
128
128
 
129
- "link:{eref-#{refname}-url}##{ref}[#{ref}]"
129
+ ref_pattern =
130
+ @variables["eref-#{refname}-ref-pattern"] || '#%s'
131
+ ref_str = format(ref_pattern, ref)
132
+
133
+ "link:{eref-#{refname}-url}#{ref_str}[#{ref}]"
130
134
  end
131
135
 
132
136
  def show_ext_ref(matches)
@@ -4,7 +4,7 @@
4
4
  module Asciidoctor
5
5
  # main application module
6
6
  module DefMastership
7
- VERSION = '1.0.8'
7
+ VERSION = '1.0.9'
8
8
  public_constant :VERSION
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-defmastership
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérôme Arbez-Gindre
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.4.10
99
+ rubygems_version: 3.5.9
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: asciidoctor extension to handle applicable definition references