benjypng / logseq-mermaid-plugin

Create mermaid diagrams in image format on-the-fly.
MIT License
94 stars 8 forks source link

Allow setting host URL completely, not only the port #15

Closed ivan-danilov closed 4 months ago

ivan-danilov commented 8 months ago

It would be nice to be able to replace the scheme and host in the settings. After all, the current (http://localhost:${port})[https://github.com/hkgnp/logseq-mermaid-plugin/blob/master/src/convert.ts#L41] could be https, not localhost, etc.

It is easy to set up a container or an RPI with a mermaid server available on the local network 24/7/365. You don't need to dance with locally running processes every time you need to render something. On the other hand, using localhost remains the same.

benjypng commented 4 months ago

Fixed in latest version.