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

Diagrams in preview #2

Closed
tinysun212 opened this issue Nov 24, 2024 · 3 comments
Closed

Diagrams in preview #2

tinysun212 opened this issue Nov 24, 2024 · 3 comments

Comments

@tinysun212
Copy link

Is it possible to make a mermaid diagram like the one below visible in the preview?

[mermaid]
----
flowchart LR
A --> B
----
@dzruyk dzruyk closed this as completed in fd3c4dd Nov 24, 2024
@dzruyk
Copy link
Owner

dzruyk commented Nov 24, 2024

Done in 0.1.3
But according to asciidoc docs you should use this syntax

[,mermaid]
----
flowchart LR
A --> B
----
OR
[source,mermaid]
----
flowchart LR
A --> B
----

@tinysun212
Copy link
Author

Thank you so much for your help!

By the way, have you thought about using Kroki to create diagrams, like PlantUML diagrams?

@dzruyk
Copy link
Owner

dzruyk commented Nov 30, 2024

I think there should be a simple way to integrate other plugins that implement additional code blocks processing (such as obsidian-plantuml).

From the obsidian-asciidoc side, you will need to add a new handler here asciidocView.ts and use other plugin's pulic API from app.plugins.plugins['PLUGIN_ID_NAME'] and postprocess code block.

However, I have no plans to implement this in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants