retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.06k stars 204 forks source link

Mechanism for using another version of mermaid.js and/or Upgrade to mermaid.js V10.4.0 #627

Open ApolonTorq opened 1 year ago

ApolonTorq commented 1 year ago

Can you upgrade to V10.4.0 of mermaid.js for the next Retype release?

It would also be useful to be able to upgrade to a new version of mermaid.js independently of the Retype release cycle.

I've experimented with putting in a custom resources/js/mermaid.js file into the Retype input. It does actually end up using the custom version of the mermaid.js file but appears to be unstable in that sometimes just the raw text is displayed or mermaid errors occur which don't usually. Is Retype specific post-processing of the mermaid.js file required?

Could you document a mechanism for replacing the version of Mermaid used in a retype build/start?

geoffreymcgill commented 1 year ago

Could you document a mechanism for replacing the version of Mermaid used in a retype build/start?

At the moment, there is no process supported by Retype manually revising or loading a different version of the library. This is certainly something we can look into for a future release.

Upgrading to v10.4.0 does not appear to fix the issue in #626.