Skip to content

Commit cde3650

Browse files
authored
fix: use correct unist-util-visit-parents imports (#1427)
The recent `unist-util-visit-parents` renovate update broke the `changelogFromRoot` theme option (and therefore e.g. [Apify Python SDK changelog](https://docs.apify.com/sdk/python/docs/changelog)). Even though the `unist` package claims to be ESM-only, this fix seems to remedy the issues.
1 parent 5163b71 commit cde3650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apify-docs-theme/src/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const remarkParse = require('remark-parse');
22
const remarkStringify = require('remark-stringify');
33
const { unified } = require('unified');
4-
const visitParents = require('unist-util-visit-parents');
4+
const { visitParents } = require('unist-util-visit-parents');
55

66
/**
77
* Updates the markdown content for better UX and compatibility with Docusaurus v3.

0 commit comments

Comments
 (0)