-
-
Notifications
You must be signed in to change notification settings - Fork 189
Open
Description
Description
The marked package has changed the way it exports its functionality in a recent version. It now exports an object that contains a function named marked, rather than exporting the function directly. This causes a TypeError: marked is not a function error when trying to use marked as a function.
Steps to Reproduce
- Install the latest version of
markedwithnpm install marked@latest. - Try to use
markedas a function in the code.
Expected Behavior
marked should be a function that can be used to convert markdown to HTML.
Actual Behavior
marked is an object, and trying to use it as a function causes a TypeError.
Possible Solution
Adjust the import statement to use the marked function from the exported object:
const { marked } = require('marked');Metadata
Metadata
Assignees
Labels
No labels