asciidoctor-lists 1.0.8 → 1.1.2

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: 4e4c385d098f83a5dc7c73e70afe4e09c1a414b5b8e6ceeb1c12aef78f47b372
4
- data.tar.gz: 8536f12d37553f0c813719d69871c5073378b0aff7fdb973a26c72bd7fde6682
3
+ metadata.gz: dede3baf5ff30e9dedb9fea3a3dc4d8cd9d6c298f1440625387f9476f152143b
4
+ data.tar.gz: 5117fef8f7eaf68f3f94baf50b9d39f4e617cc12f42a1e7ec34f3451b1d41765
5
5
  SHA512:
6
- metadata.gz: 5c1d33f380081b1e4a7e28a64c45298df459e7ec8298a72baa9315beb3bb4088deda57bf76d31414b0e0432eade7ed56620417b11a29b35547da9446208a5931
7
- data.tar.gz: 327515c647fb79c583011fc2271012a43ae502e5e9bd5919f2c89a647e1024041074ad20973512a74f9b74a602bef8fe2e4a2acff75f9d48880cabf109ae67fe
6
+ metadata.gz: fe3eb6256a1d6e5c6028f1c5845b94c83294a44205b5fb2fd838658189b80d5794dd389816a7357ae27a21399e5c80278d43e822e6bc2f216e182a9df6b51e11
7
+ data.tar.gz: 8899dc1447761ac50f1940039c53ba4d544d72b215976eb1be3c00dfffbe6d853e4e1cefefa24afa8adc8f9d052acc4d1ef7fd6cdc17181cd839a5b02d9b2967
data/README.adoc CHANGED
@@ -1,11 +1,13 @@
1
1
  = asciidoctor-lists
2
2
 
3
+ image:https://img.shields.io/gem/dt/asciidoctor-lists[Gem, link=https://rubygems.org/gems/asciidoctor-lists]
3
4
  image:https://github.com/Alwinator/asciidoctor-lists/actions/workflows/test.yml/badge.svg[Test, link=https://github.com/Alwinator/asciidoctor-lists/actions/workflows/test.yml]
4
5
  image:https://github.com/Alwinator/asciidoctor-lists/actions/workflows/publish_gem.yml/badge.svg[Build, link=https://github.com/Alwinator/asciidoctor-lists/actions/workflows/publish_gem.yml]
5
6
  image:https://img.shields.io/gem/v/asciidoctor-lists.svg[Latest Release, link=https://rubygems.org/gems/asciidoctor-lists]
6
7
  image:https://img.shields.io/github/stars/Alwinator/asciidoctor-lists[Stars, link=https://github.com/Alwinator/asciidoctor-lists]
7
8
 
8
9
 
10
+
9
11
  An https://asciidoctor.org/[asciidoctor] extension that adds a list of figures, a list of tables, or a list of anything you want!
10
12
 
11
13
  *Pull Requests are always welcome! :)*
@@ -47,18 +47,19 @@ module AsciidoctorLists
47
47
  if element.caption or element.title
48
48
  unless element.id
49
49
  element.id = SecureRandom.uuid
50
+ document.catalog[:refs][element.id] = element
50
51
  end
51
52
 
52
53
  if enhanced_rendering
53
54
  if element.caption
54
- references_asciidoc << %(xref:#{element.id}[#{element.caption}]#{element.instance_variable_get(:@title)} +)
55
- else element.caption
55
+ references_asciidoc << %(xref:#{element.id}[#{element.caption.rstrip()}] #{element.instance_variable_get(:@title)} +)
56
+ else
56
57
  references_asciidoc << %(xref:#{element.id}[#{element.instance_variable_get(:@title)}] +)
57
58
  end
58
59
  else
59
60
  if element.caption
60
- references_asciidoc << %(xref:#{element.id}[#{element.caption}]#{element.title} +)
61
- else element.caption
61
+ references_asciidoc << %(xref:#{element.id}[#{element.caption.rstrip()}] #{element.title} +)
62
+ else
62
63
  references_asciidoc << %(xref:#{element.id}[#{element.title}] +)
63
64
  end
64
65
  end
@@ -1,3 +1,3 @@
1
1
  module AsciidoctorLists
2
- VERSION = '1.0.8'
3
- end
2
+ VERSION = '1.1.2'
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-lists
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alwin Schuster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-21 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -37,7 +37,7 @@ files:
37
37
  - lib/asciidoctor-lists/version.rb
38
38
  homepage: https://github.com/Alwinator/asciidoctor-lists
39
39
  licenses:
40
- - MPL-2
40
+ - MPL-2.0
41
41
  metadata: {}
42
42
  post_install_message:
43
43
  rdoc_options: []
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubygems_version: 3.1.2
57
+ rubygems_version: 3.3.5
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: An asciidoctor extension that adds a list of figures, a list of tables, or