emersonbottero / vitepress-plugin-mermaid

Add mermaid support for Vitepress
MIT License
87 stars 20 forks source link

fix: missing export withMermaid & deps #48

Closed Intevel closed 1 year ago

Intevel commented 1 year ago

Now I just make a pull request before this bug is never fixed.

The Problem

The problem is that TypeScript looks as package entrypoint, mermaid.ts from the dist/. This is wrong because this file only exports render and init and not withMermaid. See Issue #46

The Solution

Renamed mermaid.ts to render-helpers.ts to be more clear, and add type declaration files on build. Also I updated the dependencies, to be up to date.

emersonbottero commented 1 year ago

I added more features and included types export as well.. but thanks for the collaboration.