I am buiding a simple markdown previewer in JS
I have:
Installed the library by running
npm i markedin the app folder (I double checked the nodes_package folder and a marked folder was indeed created)Added
import marked from "marked"at the top of myApp.jsfileAs per suggested in the Marked documentation’s “advanced” section, used the
marked.parse(string)function
When I try to run the app, I get:
TypeError: marked.parse is not a function
/* global marked */flag at the top of the App.js - looks like something was off when importing