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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/asciidoctor/html/ref_tree_processor.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0235c555e3525702b14618c7d8714ac5cd9691726b3dbe6874a90bf5167b46a1
|
4
|
+
data.tar.gz: 016e6e4f6cb10d851b8a6cd699ef24995456b098d05cbe577d262034c1ea4a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf47e01a1dc4d382988b77a1e342c45eebcf6265a7dc1fa881e0c8cc6cfa31f0f3d29991b68b85f2ed4cd0f23b946419d67eba9fa302a3302efa584c0407b3a1
|
7
|
+
data.tar.gz: 328b30f34c838008c4f2ff639c1fdd50cf2dd5ee5c603982219500db80ce1f32723951f3c2e69cf941d25c1a686e2114409f041172982c783019d6e0e4c2fad4
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|