eventcatalog icon indicating copy to clipboard operation
eventcatalog copied to clipboard

Mermaid diagrams not working in domains

Open RenugaParamalingam opened this issue 1 year ago • 4 comments

Have you read the Contributing Guidelines on issues?

Description

If mermaid diagrams is added under services/events, it is working as expected. But not in the index.md file under domains.

Steps to reproduce

Step 1: Download and install EventCatalog per the instructions Step 2: Add the following code in the file named index.md under domains directory.

<Mermaid title="Event Rules & Targets" charts={[`flowchart LR 
Start --> Stop`]} />

Step 3: Run the EventCatalog

Expected behavior

Mermaid diagram should show up.

Actual behavior

Mermaid diagram is not available. And found the following error getting logged.

Component Mermaid was not imported, exported, or provided by MDXProvider as global scope

Your environment

  • EventCatalog version used: 0.6.8
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): Node.js v14.21.3
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS): Mac 13.2.1

RenugaParamalingam avatar Apr 05 '23 02:04 RenugaParamalingam

Hi, I think this is not a bug but a feature, because reading docs in website https://www.eventcatalog.dev/docs/components/domains, there's no Mermaid support. I need this function too, so if @boyney123 agrees I can try to create a pull request for this (in case assign me).

stanipetrosyan avatar Aug 02 '23 11:08 stanipetrosyan

Hey,

Yeah no real reason why this is not supported, thanks for the PR!

boyney123 avatar Aug 11 '23 06:08 boyney123

Any updates on the merging of this PR?

Jackfr0stt avatar Dec 11 '23 11:12 Jackfr0stt

I'm waiting approve from @boyney123

stanipetrosyan avatar Dec 11 '23 12:12 stanipetrosyan