seemore 1.12.23 → 1.12.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seemore",
3
- "version": "1.12.23",
3
+ "version": "1.12.24",
4
4
  "description": "Zero config documentation tool - Let AI write the Markdown. Let seemore show it better.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -219,7 +219,11 @@ function buildExportToc(article: Element): Element | undefined {
219
219
  const li = document.createElement('li');
220
220
  const a = document.createElement('a');
221
221
  a.href = `#${heading.id}`;
222
- a.textContent = heading.textContent ?? '';
222
+ // Without the anchor button: fumadocs-ui 16.16 labels it with a visually hidden span,
223
+ // whose "Copy Anchor Link" would otherwise end up in every entry.
224
+ const label = heading.cloneNode(true) as Element;
225
+ for (const button of label.querySelectorAll('button')) button.remove();
226
+ a.textContent = label.textContent?.trim() ?? '';
223
227
  li.append(a);
224
228
 
225
229
  if (heading.tagName === 'H2') {