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/README.md +3 -3
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/src/app/export/exportPage.ts +5 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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') {
|