@adobe/helix-docx2md 1.8.1 → 1.9.0
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/dast2mdast/dast2mdast.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.9.0](https://github.com/adobe/helix-docx2md/compare/v1.8.1...v1.9.0) (2025-10-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* use named bookmarks ([#705](https://github.com/adobe/helix-docx2md/issues/705)) ([88445e4](https://github.com/adobe/helix-docx2md/commit/88445e425cb67aa60ae1bee172f791a4f17623c5))
|
|
7
|
+
|
|
1
8
|
## [1.8.1](https://github.com/adobe/helix-docx2md/compare/v1.8.0...v1.8.1) (2025-10-06)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -120,7 +120,7 @@ export default async function dast2mdast(tree, opts = {}) {
|
|
|
120
120
|
bm.id = bm.target.id;
|
|
121
121
|
} else if (bm.links.length) {
|
|
122
122
|
// create an anchor node for non-heading bookmarks
|
|
123
|
-
bm.id = slugger.slug('bookmark');
|
|
123
|
+
bm.id = slugger.slug(bm.name || 'bookmark');
|
|
124
124
|
bm.target.type = 'html';
|
|
125
125
|
bm.target.value = `<a id="${bm.id}"></a>`;
|
|
126
126
|
} else {
|