Open hanye9895 opened 2 years ago
seems already done
But with a further look, seems it do not contain in dist folder~
@jiawei686 Do you have any ideas?
@jiawei686 Do you have any ideas? It seems plantuml addons were not included in dist folder
![]()
And here is my usage of plantuml (just like mermaid)
const [
{ default: CherryMermaidPlugin },
{ default: mermaid },
{ default: CherryPlantumlPlugin },
{ default: plantuml }
] = await Promise.all([
import('cherry-markdown/dist/addons/cherry-code-block-mermaid-plugin'),
import('mermaid'),
import('cherry-markdown/dist/addons/cherry-code-block-plantuml-plugin'),
import('plantuml')
]);
if (!window.hasPlugin) {
Cherry.usePlugin(CherryMermaidPlugin, {
mermaid
});
Cherry.usePlugin(CherryPlantumlPlugin, {
plantuml
});
window.hasPlugin = true;
}
So, I try to include that in the dist folder~ Or, is there another usage of plantuml without import these addons?
For most cases, mermaid should be enough, but for some people, they would like to use plantuml
What does the proposed API look like Just like mermaid: