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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/assets/css/jupyterlite-repl.css +1 -1
- data/assets/css/styles.css +2 -2
- data/lib/asciidoctor/html/book_template.rb +2 -2
- data/lib/asciidoctor/html/utils.rb +1 -1
- data/lib/asciidoctor/html/version.rb +1 -1
- metadata +1 -1
|
@@ -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
|