asciidoctor-html 1.0.0 → 1.0.1

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: f70162f5aa14c8c3ad52ab97fa23b06b8231e626dab03772f4c68a10b6cfa05c
4
- data.tar.gz: a7b9db17eb4b4cf72a3b01a40004c4ef5170be2d6fc1324c62c6869eba8b367f
3
+ metadata.gz: f411bb26b01deaf5e90728f55d6102d0f489717924e757be120569e189691f83
4
+ data.tar.gz: 1af2b58bb0d59582f039ddb338464d0a0f957008c7715008d58a4a64c4bd1435
5
5
  SHA512:
6
- metadata.gz: 1bc535bb8a742edada7ca6d7d4ab656543f00fa7d2d2e51e762c0ad44e70da046fd9755d6c204b47e1039c4d0e3df6855d787bbed17e04c01c330dc85e81be4b
7
- data.tar.gz: a54435257f283e729a3b24035fa547cb8b407f7190f0157cf824b045d4a5c819a49f7e11087c400e5b329efc8db75cc9f51e8e3c512d4be3daf657fbe0b094ca
6
+ metadata.gz: 9d15ba6c4d9933573a7bced40d5cd58dbaba3e9a286d299dc348f336e36215f10ca76d5142c4243bbe9674b3bbbf6cc5fc0efcbd776bd9037fa58692d762df32
7
+ data.tar.gz: 7e17b0dd07f36af07368155a1fc789537f41be2760b00238adc6ee9a7da0487b6ac5b864ab90793cae5061267f7d1cbd48f68552c1a00a453a5a7401db60576c
data/CHANGELOG.md CHANGED
@@ -109,3 +109,7 @@
109
109
  - Lock down versions of dependencies.
110
110
  - Support nested text macros.
111
111
  - Improved copy-to-clipboard functionality.
112
+
113
+ ## [1.0.1] - 2025-08-20
114
+
115
+ - Fixes bug where callouts were not being displayed.
@@ -95,9 +95,10 @@ module Asciidoctor
95
95
  wrapper.appendChild(overlay);
96
96
 
97
97
  // Find and replace inline callouts
98
- const rgx = /\s*[\u2460-\u2468]/gu;
98
+ const rgx = /[\u2460-\u2468]/gu;
99
+ const cbRgx = /\s*[\u2460-\u2468]/gu;
99
100
  if(text.match(rgx)) {
100
- cbText = text.replaceAll(rgx, '');
101
+ cbText = text.replaceAll(cbRgx, '');
101
102
  el.innerHTML = el.innerHTML.replaceAll(rgx, (match) => {
102
103
  return '<i class="hljs-comment bi bi-' + (match.charCodeAt() - 9311) + '-circle"></i>';
103
104
  });
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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ravi Rajani