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

Render PlantUML in Obsidian Publish #7

Open
waynemsmith opened this issue Jun 26, 2021 · 3 comments
Open

Render PlantUML in Obsidian Publish #7

waynemsmith opened this issue Jun 26, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@waynemsmith
Copy link

I no little to nothing about CSS javascript etc., but is there a way to enable the PlantUML diagrams to render when markdown published on Obsidian Publish? Any tips appreciated?

@joethei
Copy link
Owner

joethei commented Jun 26, 2021

Sadly there is no way for me to add code for publish to this plugin.
I would guess that you need something like this inside your publish.js: https://plantuml.com/code-javascript-synchronous
Might also take a look at how mermaid is working on publish.

As I am not a publish user I can't test this.
If you do find a way to make PlantUML work on publish let me know, so I can add it to the documentation.

I am going to leave this issue open in case the obsidian devs add better support for plugins on publish.

@joethei joethei added the enhancement New feature or request label Jun 26, 2021
@waynemsmith
Copy link
Author

waynemsmith commented Jun 27, 2021 via email

@joethei
Copy link
Owner

joethei commented Feb 19, 2022

Just as a reference, the following has been posted by one of the obsidian developers regarding publish

Another batch is scheduled to be started soon but we're currently running slightly behind.
Couple of things on my mind:

  • Option to hide file name heading
  • Global/site graphs
  • SEO improvements
  • Favicon improvements
  • Official plugin support (API & format still needs to be decided), at least for simple code blocks like admonitions, chess, abc.js, etc.

The last point is the interesting one for this issue.
So this might be possible soon(tm)

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

No branches or pull requests

2 participants