analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.48k stars 234 forks source link

mermaid in marddown file not rendered #846

Open DrMabuse23 opened 7 months ago

DrMabuse23 commented 7 months ago

Please provide the environment you discovered this bug in.

node --version v18.18.2

Which area/package is the issue in?

create-analog

Description

I created up a repository for you just do

npm i
npx nx run analog-app:serve

please see discord discussion

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

d-koppenhagen commented 7 months ago

@DrMabuse23 the referenced repo seems not to be public, or even exist.

have configured to use mermaid as described in the docs?

withMarkdownRenderer({
  loadMermaid: () => import('mermaid'),
});
DrMabuse23 commented 7 months ago

Sorry I changed the Visibility

brandonroberts commented 7 months ago

It is a bug because the MarkdownRouteComponent does not load the necessary mermaid functionality

https://github.com/analogjs/analog/blob/main/packages/content/src/lib/markdown-route.component.ts

The AnalogMarkdownComponent does.

https://github.com/analogjs/analog/blob/main/packages/content/src/lib/markdown.component.ts

rlmestre commented 6 months ago

Is the separate route component necessary at all? They are the same except the mermaid functionality 👀