Closed segevfiner closed 10 months ago
@knsv
@segevfiner Thanks of reporting, we are not using react so we don't need to have it in the dependencies!
React seems to be a critical dependency for the package. We'll have to figure out alternatives.
I recommend to have a look at the unified ecosystem. I haven’t really looked at how @khanacademy/simple-markdown
is used, but my guess is Mermaid needs something like:
mdast-util-from-markdown
: parse markdown to mdast (markdown AST)mdast-util-to-hast
: convert mdast to hast (HTML AST)hast-util-to-dom
: convert hast to DOM nodes@knsv we're already using mdast in docs.mts. Works very well.
@remcohaszing would micromark be enough for the usecase?
I can chime in that this issue prevents Zettlr from upgrading to Mermaid v10.x.
Additionally, I have just had a look at the repo, and noticed two issues:
I can also recommend unified's remark
. Depending on how it is being used, however, it is important to have a look here: https://github.com/micromark/micromark-extension-frontmatter/issues/5
YAML frontmatter syntax can currently cause errors in properly building the Markdown AST for unified.
Is this still an open issue? I see one PR was merged to address SimpleMarkdown
Closing due to no response
Description
When using
pnpm
:This is annoying, it forces projects to bring in react, and it forces them to an ancient version.
Steps to reproduce
pnpm <=7
:pnpm i mermaid
.Screenshots
No response
Code Sample
No response
Setup
Additional Context
No response