asciidoctor 2.0.25 → 2.0.26

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15bd78ac6106922b76adf86234dbee3e2c477401dbd69f011bea808166cadbca
4
- data.tar.gz: 22dc236b8852541f241b8076c7bd0427ed768c4a82acebaff35ebb37c3e47fec
3
+ metadata.gz: ed6d6e69371a79aefa806a8e715e0792b791deb30e3717d822da68396342e540
4
+ data.tar.gz: 57b8525a36fd011b185e12c4ca343b5a04a6641d8f1a2a27f53c805a195258c4
5
5
  SHA512:
6
- metadata.gz: 274206a482d52d7e6fa7be668de7953ed3d137c200a861487d3be3252a868bb780f1eb36345247d706f9bfdbf6644902d5a48a345dc2f6dfc7bfcfd9eb1be851
7
- data.tar.gz: aa4831bbfc906f8605757b93e6ec3cdea9919b3d8f15d737962066a9a3356ad268bb67335c4e91866b10a960f03d21aa506d10e8b08a44f2ad1e54cea1e9e3b0
6
+ metadata.gz: 11725c7016dae18d51ecb4f2464c8ab18c5ce64413ea52016ebe117266916af4e03c3204d49da8500dd023794a82ff03b05bc44f29f8cca719ff02c7140de3e5
7
+ data.tar.gz: f70974e8aab598280097fb765509c9ce4846feae262fab936bfc7ae04410af20006d0b0af4cedeb40440f2d26deca6c8efc1a3982aff4fc13b935c0cc9ad988c
data/CHANGELOG.adoc CHANGED
@@ -16,6 +16,24 @@ For an even more detailed look at what has changed, refer to the {url-repo}/comm
16
16
  This project utilizes semantic versioning.
17
17
 
18
18
  // tag::compact[]
19
+ == 2.0.26 (2025-10-24) - @mojavelinux
20
+
21
+ Improvement::
22
+
23
+ * Use MathJax config recommended by MathJax itself; see https://docs.mathjax.org/en/latest/output/html.html#html-support (#4424)
24
+ * Use thin space between dots of an ellipsis (U+2026) in manpage output (#4568)
25
+
26
+ Bug Fixes::
27
+
28
+ * Don't use text of span as value of xreflabel when node has ID in DocBook output (#4539)
29
+ * Resolve attribute references (attributes substitution) in attrlist of toc macro (#4806)
30
+ * Cite stem macro specifically in warning message when macro has invalid substitutions (#4808)
31
+
32
+ === Details
33
+
34
+ {url-repo}/releases/tag/v2.0.26[git tag] | {url-repo}/compare/v2.0.25\...v2.0.26[full diff]
35
+ // end::compact[]
36
+
19
37
  == 2.0.25 (2025-10-16) - @mojavelinux
20
38
 
21
39
  Improvements::
@@ -31,7 +49,6 @@ Bug Fixes::
31
49
  === Details
32
50
 
33
51
  {url-repo}/releases/tag/v2.0.25[git tag] | {url-repo}/compare/v2.0.24\...v2.0.25[full diff]
34
- // end::compact[]
35
52
 
36
53
  == 2.0.24 (2025-10-13) - @mojavelinux
37
54
 
data/README-de.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.0.25, 2025-10-16
3
+ v2.0.26, 2025-10-24
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -16,7 +16,7 @@ ifdef::env-github[]
16
16
  :warning-caption: :warning:
17
17
  endif::[]
18
18
  // Variables:
19
- :release-version: 2.0.25
19
+ :release-version: 2.0.26
20
20
  // URIs:
21
21
  :uri-org: https://github.com/asciidoctor
22
22
  :uri-repo: {uri-org}/asciidoctor
data/README-fr.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.0.25, 2025-10-16
3
+ v2.0.26, 2025-10-24
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -16,7 +16,7 @@ ifdef::env-github[]
16
16
  :warning-caption: :warning:
17
17
  endif::[]
18
18
  // Variables:
19
- :release-version: 2.0.25
19
+ :release-version: 2.0.26
20
20
  // URIs:
21
21
  :uri-org: https://github.com/asciidoctor
22
22
  :uri-repo: {uri-org}/asciidoctor
data/README-jp.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.0.25, 2025-10-16
3
+ v2.0.26, 2025-10-24
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -16,7 +16,7 @@ ifdef::env-github[]
16
16
  :warning-caption: :warning:
17
17
  endif::[]
18
18
  // Variables:
19
- :release-version: 2.0.25
19
+ :release-version: 2.0.26
20
20
  // URIs:
21
21
  :uri-org: https://github.com/asciidoctor
22
22
  :uri-repo: {uri-org}/asciidoctor
data/README-zh_CN.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.0.25, 2025-10-16
3
+ v2.0.26, 2025-10-24
4
4
  // settings:
5
5
  :page-layout: base
6
6
  :idprefix:
@@ -17,7 +17,7 @@ ifdef::env-github[]
17
17
  :warning-caption: :warning:
18
18
  endif::[]
19
19
  // Variables:
20
- :release-version: 2.0.25
20
+ :release-version: 2.0.26
21
21
  // URIs:
22
22
  :uri-org: https://github.com/asciidoctor
23
23
  :uri-repo: {uri-org}/asciidoctor
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.0.25, 2025-10-16
3
+ v2.0.26, 2025-10-24
4
4
  // settings:
5
5
  :idprefix:
6
6
  :idseparator: -
@@ -16,7 +16,7 @@ ifdef::env-github[]
16
16
  :warning-caption: :warning:
17
17
  endif::[]
18
18
  // Variables:
19
- :release-version: 2.0.25
19
+ :release-version: 2.0.26
20
20
  // URLs:
21
21
  :url-org: https://github.com/asciidoctor
22
22
  :url-repo: {url-org}/asciidoctor
@@ -623,7 +623,7 @@ class Converter::DocBook5Converter < Converter::Base
623
623
  quoted_text = %(#{open}#{text}#{close})
624
624
  end
625
625
 
626
- node.id ? %(<anchor#{common_attributes node.id, nil, text}/>#{quoted_text}) : quoted_text
626
+ node.id ? %(<anchor#{common_attributes node.id}/>#{quoted_text}) : quoted_text
627
627
  end
628
628
  end
629
629
 
@@ -290,7 +290,7 @@ MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
290
290
  })
291
291
  })
292
292
  </script>
293
- <script src="#{cdn_base_url}/mathjax/#{MATHJAX_VERSION}/MathJax.js?config=TeX-MML-AM_HTMLorMML"></script>)
293
+ <script src="#{cdn_base_url}/mathjax/#{MATHJAX_VERSION}/MathJax.js?config=TeX-MML-AM_CHTML"></script>)
294
294
  end
295
295
 
296
296
  unless (docinfo_content = node.docinfo :footer).empty?
@@ -707,7 +707,7 @@ allbox tab(:);'
707
707
  end
708
708
  str = str.
709
709
  gsub(LiteralBackslashRx) { $1 ? $& : '\\(rs' }. # literal backslash (not a troff escape sequence)
710
- gsub(EllipsisCharRefRx, '...'). # horizontal ellipsis
710
+ gsub(EllipsisCharRefRx, '.\|.\|.'). # horizontal ellipsis (emulate appearance)
711
711
  gsub(LeadingPeriodRx, '\\\&.'). # leading . is used in troff for macro call or other formatting; replace with \&.
712
712
  gsub(EscapedMacroRx) { (rest = $3.lstrip).empty? ? %(.#{$1}"#{$2}") : %(.#{$1}"#{$2.rstrip}"#{LF}#{rest}) }. # drop orphaned \c escape lines, unescape troff macro, quote adjacent character, isolate macro line
713
713
  gsub('-', '\-').
@@ -641,7 +641,7 @@ class Parser
641
641
 
642
642
  elsif ch0 == 't' && (this_line.start_with? 'toc:') && BlockTocMacroRx =~ this_line
643
643
  block = Block.new parent, :toc, content_model: :empty
644
- block.parse_attributes $1, [], into: attributes if $1
644
+ block.parse_attributes $1, [], sub_input: true, into: attributes if $1
645
645
  break
646
646
 
647
647
  elsif block_macro_extensions ? CustomBlockMacroRx =~ this_line &&
@@ -2238,13 +2238,13 @@ class Parser
2238
2238
  marker = '1.'
2239
2239
  when :loweralpha
2240
2240
  if validate
2241
- expected = ('a'[0].ord + ordinal).chr
2241
+ expected = (97 + ordinal).chr # 97 is a
2242
2242
  actual = marker.chop # remove trailing .
2243
2243
  end
2244
2244
  marker = 'a.'
2245
2245
  when :upperalpha
2246
2246
  if validate
2247
- expected = ('A'[0].ord + ordinal).chr
2247
+ expected = (65 + ordinal).chr # 65 is A
2248
2248
  actual = marker.chop # remove trailing .
2249
2249
  end
2250
2250
  marker = 'A.'
@@ -1134,7 +1134,7 @@ module Substitutors
1134
1134
  content = normalize_text $3, nil, true
1135
1135
  # NOTE drop enclosing $ signs around latexmath for backwards compatibility with AsciiDoc.py
1136
1136
  content = content.slice 1, content.length - 2 if type == :latexmath && (content.start_with? '$') && (content.end_with? '$')
1137
- subs = subs ? (resolve_pass_subs subs) : ((@document.basebackend? 'html') ? BASIC_SUBS : nil)
1137
+ subs = subs ? (resolve_pass_subs subs, 'stem macro') : ((@document.basebackend? 'html') ? BASIC_SUBS : nil)
1138
1138
  passthrus[passthru_key = passthrus.size] = { text: content, subs: subs, type: type }
1139
1139
  %(#{PASS_START}#{passthru_key}#{PASS_END})
1140
1140
  end if (text.include? ':') && ((text.include? 'stem:') || (text.include? 'math:'))
@@ -1242,8 +1242,8 @@ module Substitutors
1242
1242
  end
1243
1243
 
1244
1244
  # Public: Call resolve_subs for the :inline type with the subject set as passthrough macro.
1245
- def resolve_pass_subs subs
1246
- resolve_subs subs, :inline, nil, 'passthrough macro'
1245
+ def resolve_pass_subs subs, subject = 'passthrough macro'
1246
+ resolve_subs subs, :inline, nil, subject
1247
1247
  end
1248
1248
 
1249
1249
  # Public: Expand all groups in the subs list and return. If no subs are resolved, return nil.
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Asciidoctor
3
- VERSION = '2.0.25'
3
+ VERSION = '2.0.26'
4
4
  end
data/man/asciidoctor.1 CHANGED
@@ -1,13 +1,13 @@
1
1
  '\" t
2
2
  .\" Title: asciidoctor
3
3
  .\" Author: Dan Allen, Sarah White
4
- .\" Generator: Asciidoctor 2.0.24
4
+ .\" Generator: Asciidoctor 2.0.25
5
5
  .\" Date: 2018-03-20
6
6
  .\" Manual: Asciidoctor Manual
7
- .\" Source: Asciidoctor 2.0.25
7
+ .\" Source: Asciidoctor 2.0.26
8
8
  .\" Language: English
9
9
  .\"
10
- .TH "ASCIIDOCTOR" "1" "2018-03-20" "Asciidoctor 2.0.25" "Asciidoctor Manual"
10
+ .TH "ASCIIDOCTOR" "1" "2018-03-20" "Asciidoctor 2.0.26" "Asciidoctor Manual"
11
11
  .ie \n(.g .ds Aq \(aq
12
12
  .el .ds Aq '
13
13
  .ss \n[.ss] 0
@@ -31,7 +31,7 @@
31
31
  asciidoctor \- converts AsciiDoc source files to HTML, DocBook, and other formats
32
32
  .SH "SYNOPSIS"
33
33
  .sp
34
- \fBasciidoctor\fP [\fIOPTION\fP]... \fIFILE\fP...
34
+ \fBasciidoctor\fP [\fIOPTION\fP].\|.\|. \fIFILE\fP.\|.\|.
35
35
  .SH "DESCRIPTION"
36
36
  .sp
37
37
  The asciidoctor(1) command converts the AsciiDoc source file(s) \fIFILE\fP to HTML5, DocBook 5, man(ual) page, and other custom output formats.
data/man/asciidoctor.adoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = asciidoctor(1)
2
2
  Dan Allen; Sarah White
3
3
  :doctype: manpage
4
- :release-version: 2.0.25
4
+ :release-version: 2.0.26
5
5
  :man manual: Asciidoctor Manual
6
6
  :man source: Asciidoctor {release-version}
7
7
  ifdef::backend-manpage[:!author:]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.25
4
+ version: 2.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen