nizel-kit 0.1.4 → 0.1.5

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.
@@ -5658,7 +5658,7 @@ ${body}
5658
5658
  ...node.children,
5659
5659
  {
5660
5660
  type: "inlineHtml",
5661
- value: `<a class="${escapeHtml8(options.className ?? "heading-anchor")}" href="#${escapeHtml8(node.id)}" aria-hidden="true">${escapeHtml8(options.label ?? "#")}</a>`
5661
+ value: `<a class="${escapeHtml8(options.className ?? "heading-anchor")}" href="#${escapeHtml8(node.id)}" aria-label="${escapeHtml8(options.ariaLabel ?? "Link to section")}">${escapeHtml8(options.label ?? "")}</a>`
5662
5662
  }
5663
5663
  ]
5664
5664
  };
package/dist/nizel-kit.js CHANGED
@@ -5626,7 +5626,7 @@ var addHeadingAnchors = (ast, options = {}) => ({
5626
5626
  ...node.children,
5627
5627
  {
5628
5628
  type: "inlineHtml",
5629
- value: `<a class="${escapeHtml8(options.className ?? "heading-anchor")}" href="#${escapeHtml8(node.id)}" aria-hidden="true">${escapeHtml8(options.label ?? "#")}</a>`
5629
+ value: `<a class="${escapeHtml8(options.className ?? "heading-anchor")}" href="#${escapeHtml8(node.id)}" aria-label="${escapeHtml8(options.ariaLabel ?? "Link to section")}">${escapeHtml8(options.label ?? "")}</a>`
5630
5630
  }
5631
5631
  ]
5632
5632
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nizel-kit",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Browser and native WebView integration kit for Nizel with official plugin registry.",
5
5
  "repository": {
6
6
  "type": "git",