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

Can't render markdown formatting in mermaid #9296

Closed
6 of 7 tasks
Penggeor opened this issue Sep 10, 2023 · 1 comment
Closed
6 of 7 tasks

Can't render markdown formatting in mermaid #9296

Penggeor opened this issue Sep 10, 2023 · 1 comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request

Comments

@Penggeor
Copy link

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Mermaid flowchat is support markdown formatting: http://mermaid.js.org/syntax/flowchart.html#markdown-formatting

But docusaurus can't render markdown formatting:

image image

Reproducible demo

https://codesandbox.io/p/sandbox/aged-waterfall-d69rkt

Steps to reproduce

  1. enter the repo
  2. enter /tutorial/intro page
  3. you will see the marmaid

Expected behavior

Render markdown formatting correctly in mermaid.

Actual behavior

No render

Your environment

Same as the example repo.

Self-service

  • I'd be willing to fix this bug myself.
@Penggeor Penggeor added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Sep 10, 2023
@slorber slorber removed the status: needs triage This issue has not been triaged by maintainers label Sep 11, 2023
@slorber
Copy link
Collaborator

slorber commented Sep 11, 2023

As far as I understand this was added in Mermaid 10.1 in mermaid-js/mermaid#4271

Docusaurus v2 uses Mermaid 9.x so it is not a bug, but a feature request.

We'll upgrade to Mermaid v10.latest in #9032 for Docusaurus v3, so closing this as a duplicate

@slorber slorber closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2023
@slorber slorber added the closed: duplicate This issue or pull request already exists in another issue or pull request label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: duplicate This issue or pull request already exists in another issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants