-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Dep Update Mermaid 10.3 #5193
Comments
Thanks for suggesting. Mermaid.js 10+ is ESM-only, which is currently not supported by MkDocs. However, since we automatically include it, we are actually able to upgrade. If somebody wants to provide a PR, feel free! We need to make sure all diagram types still work. |
What is ESM ? |
ECMAScript modules. See the v10 release notes. |
Okay, so I've investigated this change request, and I don't think we're ready yet to make the switch. The thing is that Material for MkDocs can't go full-ESM yet, as we need to support older browsers that don't have support for ESM. We would be removing support for those browsers. Now, if you want v10, you can still achieve the same thing via theme extension, but for now we can't make this switch. This is very likely going to change in the future, but currently not planned. Related: |
temporary: follow this document add custom theme override: {% block scripts %}
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10.2.0/+esm'
</script>
{% endblock %} |
This is being worked on over at MkDocs: |
This definitely feels like a temporary workaround. Using this block removes the search field. Adding |
@sheilnaik did you find another workaround? |
I unfortunately did not. I'm waiting on #5758 and I'm just not using search on my site for now. |
Context
No response
Description
MkDocs Material use Mermaid 9.3 but 10.x is the latest release. Update required.
Related links
Use Cases
The update has just been released recently and will certainly be of help to other users.
Visuals
No response
Before submitting
The text was updated successfully, but these errors were encountered: