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

[email protected]图表无法正常显示文字 #688

Closed
nijinekoyo opened this issue Sep 30, 2024 · 2 comments
Closed

[email protected]图表无法正常显示文字 #688

nijinekoyo opened this issue Sep 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nijinekoyo
Copy link

nijinekoyo commented Sep 30, 2024

描述这个Bug

在使用外部依赖引入mermaid后,图表无法正常显示文字
image

<template>
        <md-editor v-model="text" autoDetectCode noIconfont :toolbars="toolbar" :style="{ height: height }">
        </md-editor>
</template>

<script setup lang="ts">
...
import { config, MdEditor } from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
import mermaid from 'mermaid';

config({
    // 替换扩展库
    editorExtensions: {
        mermaid: {
            instance: mermaid
        }
    }
    ...
});

...
</script>

版本号

node: v20.5.1
md-editor-v3: 4.20.2
mermaid: 11.2.1

问题重现链接

No response

@imzbf imzbf changed the title 在使用外部依赖引入mermaid后,图表无法正常显示文字 [email protected]图表无法正常显示文字 Sep 30, 2024
@imzbf imzbf added the bug Something isn't working label Sep 30, 2024
@imzbf
Copy link
Owner

imzbf commented Sep 30, 2024

mermaid@11存在问题,参考这个 mermaid-js/mermaid#5904 解决,等等mermaid官方修复。没有特殊要求的话,建议使用mermaid@10

@nijinekoyo
Copy link
Author

原来是这样,我在mermaid的ieeues搜no text没搜到所以还以为是这边的问题(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants