@open-agent-toolkit/docs-transforms 0.2.21 → 0.2.23
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/dist/remark-links.js +3 -3
- package/package.json +1 -1
package/dist/remark-links.js
CHANGED
|
@@ -106,12 +106,12 @@ export const remarkLinks = function remarkLinks() {
|
|
|
106
106
|
}
|
|
107
107
|
// Split off any anchor fragment or query string
|
|
108
108
|
const suffixIndex = url.search(/[#?]/);
|
|
109
|
-
const
|
|
109
|
+
const urlPath = suffixIndex >= 0 ? url.slice(0, suffixIndex) : url;
|
|
110
110
|
const fragment = suffixIndex >= 0 ? url.slice(suffixIndex) : '';
|
|
111
|
-
const cleaned = cleanMdPath(
|
|
111
|
+
const cleaned = cleanMdPath(urlPath);
|
|
112
112
|
if (cleaned !== null) {
|
|
113
113
|
const rewrittenPath = typeof file?.path === 'string'
|
|
114
|
-
? (resolveRelativeDocsLink(file.path,
|
|
114
|
+
? (resolveRelativeDocsLink(file.path, urlPath) ?? cleaned)
|
|
115
115
|
: cleaned;
|
|
116
116
|
const prefix = rewrittenPath.startsWith('.') || rewrittenPath.startsWith('/')
|
|
117
117
|
? ''
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-agent-toolkit/docs-transforms",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Remark/unified transforms for OAT documentation",
|
|
6
6
|
"homepage": "https://github.com/voxmedia/open-agent-toolkit/tree/main/packages/docs-transforms",
|