asciidoctor-html 2.3.4 → 2.4.0

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.
@@ -69,9 +69,9 @@ module Asciidoctor
69
69
  def self.toggle_button(pagestyle)
70
70
  states = {
71
71
  single: "single page view",
72
- multi: "multipage view",
73
- presentation: "presentation view (ESC to exit)"
72
+ multi: "multipage view"
74
73
  }
74
+ states[:presentation] = "presentation view (ESC to exit)" if pagestyle == :presentation
75
75
  alternate_states = states.map do |key, value|
76
76
  <<~HTML
77
77
  <li>
@@ -110,7 +110,7 @@ module Asciidoctor
110
110
 
111
111
  def self.display_footnotes(node, content)
112
112
  footnotes = []
113
- content.scan(/data-contentid="_footnotedef_(\d)"/) do |matches|
113
+ content.scan(/data-contentid="_footnotedef_(\d+?)"/) do |matches|
114
114
  index = matches&.first&.to_i
115
115
  fn = node.document.footnotes.select { |fn| fn.index == index }.first
116
116
  next unless fn
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module Html
5
- VERSION = "2.3.4"
5
+ VERSION = "2.4.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ravi Rajani