Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flow 流程图 在 markdownToHTML 操作时失效问题 #997

Open
BeardedManZhao opened this issue Dec 3, 2023 · 0 comments
Open

flow 流程图 在 markdownToHTML 操作时失效问题 #997

BeardedManZhao opened this issue Dec 3, 2023 · 0 comments

Comments

@BeardedManZhao
Copy link

BeardedManZhao commented Dec 3, 2023

flow 流程图 在 markdownToHTML 操作时失效问题

描述

我的前端代码中有 markdownToHTML 的操作 但是这个时候 flow 会失效,我想知道时哪里需要修改或是什么原因,下面是前端中 markdownToHTML 相关的代码

                const data = res.data[WEB_CONF.RES_RETURN];
                // 设置需要用来显示页面的元素 这里是 id
                const markdownToHTML = editormd.markdownToHTML("article-markdown-view", {
                    flowChart: true,
                    htmlDecode: "video,style,iframe,sub,sup|on*",  // Filter tags, and all on* attributes
                    markdown: data, // Also, you can dynamic set Markdown text
                    path: "editor.md/lib/"  // Autoload modules mode, codemirror, marked... dependents libs path
                });

以及这段代码的报错信息

ReferenceError: Raphael is not defined
    at new f (eval at <anonymous> (jquery-latest.js:339:36), <anonymous>:5:2331)
    at Object.drawSVG (eval at <anonymous> (jquery-latest.js:339:36), <anonymous>:5:7959)
    at HTMLDivElement.eval (eval at <anonymous> (jquery-latest.js:339:36), <anonymous>:2:1175)
    at Function.each (jquery-latest.js:384:42)
    at jQuery.fn.init.each (jquery-latest.js:135:27)
    at $.fn.flowChart (eval at <anonymous> (jquery-latest.js:339:36), <anonymous>:2:1031)
    at editormd.markdownToHTML (eval at <anonymous> (jquery-latest.js:339:36), <anonymous>:4004:40)
    at eval (eval at <anonymous> (jquery-latest.js:339:36), <anonymous>:103:49)

下面是前端中的表现形式
image

以及受影响的原文章:

《mathematical-expression 实现 数学表达式解析 Java 篇》

《mathematical-expression 实现 数学表达式解析 C++ 篇》

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant