Relative Content

Tag Archive for vuejs3vitemarkdown-it

Problem resolving markdown plugin imports with Vite

I’m trying to use MarkdownIt and it’s various plugins in my Vue/Vite project, and I’m running into a situation where I cannot seem to get Vite configured properly to resolve some of the plugins. For example, markdown-it-attrs uses module.exports instead of defining a default export… I’ve tried both CommonJS and ES Module syntax for the import and both lead to errors… Github Copilot recommended the following async import syntax: