asciidoctor-html 0.1.18 → 0.1.19

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: e760c28853bcf68116967117a6b9ff70f6f62485ba0ea6efb8471071a8e4fe1d
4
- data.tar.gz: 6e76eb5f36c05e8f056fa7d12b6114a2106f45b86cbb2f15b0917c43037256f3
3
+ metadata.gz: 0235c555e3525702b14618c7d8714ac5cd9691726b3dbe6874a90bf5167b46a1
4
+ data.tar.gz: 016e6e4f6cb10d851b8a6cd699ef24995456b098d05cbe577d262034c1ea4a39
5
5
  SHA512:
6
- metadata.gz: baced874c8128dc56d563a786a2b0eb6ab508fc541dcc99a6f9be05340729875c9addd89a11fdc9641414eba6e59e038f94e03205c114422c7ce418bc08d9c46
7
- data.tar.gz: 973058f75a26ff0df64027e2d45857d1b82418b0f244923e8b91f05f277c657c4149821b76ce4243c98da7c0eef66a178dda237f8062d77f0f2d6b990a79d612
6
+ metadata.gz: cf47e01a1dc4d382988b77a1e342c45eebcf6265a7dc1fa881e0c8cc6cfa31f0f3d29991b68b85f2ed4cd0f23b946419d67eba9fa302a3302efa584c0407b3a1
7
+ data.tar.gz: 328b30f34c838008c4f2ff639c1fdd50cf2dd5ee5c603982219500db80ce1f32723951f3c2e69cf941d25c1a686e2114409f041172982c783019d6e0e4c2fad4
data/CHANGELOG.md CHANGED
@@ -99,3 +99,7 @@
99
99
  ## [0.1.18] - 2025-08-13
100
100
 
101
101
  - Replace list shift attribute with markers attribute.
102
+
103
+ ## [0.1.19] - 2025=08-13
104
+
105
+ - Ensure delimiter is properly escaped in marker format string.
@@ -102,10 +102,12 @@ module Asciidoctor
102
102
  mark
103
103
  end
104
104
 
105
- def li_mark(idx, depth, format_str)
105
+ def li_mark(node, idx, depth, format_str)
106
106
  rgx = /(?<left>.?)(?<numeral>[1iIaA])(?<right>.?)/
107
107
  match = rgx.match(format_str) || rgx.match(li_default_format(depth))
108
- "#{match[:left]}#{convert_mark match[:numeral], idx}#{match[:right]}"
108
+ delim_left = node.sub_specialchars match[:left]
109
+ delim_right = node.sub_specialchars match[:right]
110
+ "#{delim_left}#{convert_mark match[:numeral], idx}#{delim_right}"
109
111
  end
110
112
 
111
113
  def bullet(depth)
@@ -152,7 +154,7 @@ module Asciidoctor
152
154
  style = block.style
153
155
  marker_format = block.attr("markers") || li_default_format(depth, style)
154
156
  block.items.each_with_index do |item, idx|
155
- mark = li_mark(idx + offset, depth, marker_format)
157
+ mark = li_mark(block, idx + offset, depth, marker_format)
156
158
  item.set_attr "mark", mark
157
159
  item_reftext = "#{parent_reftext}#{li_ref_mark mark}"
158
160
  register_reftext! item, item_reftext
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: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ravi Rajani