From 3f8a0578b8aa98098432aa990f58f0146247e9ed Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 8 Dec 2021 15:34:53 +0100 Subject: [PATCH] Updated upgrade guide --- docs/upgrade.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/upgrade.md b/docs/upgrade.md index e68f851f3..8c6dfdaa6 100644 --- a/docs/upgrade.md +++ b/docs/upgrade.md @@ -66,6 +66,38 @@ viewports]: [Tabbed]: setup/extensions/python-markdown-extensions.md#tabbed [better behavior on mobile viewports]: https://twitter.com/squidfunk/status/1424740370596958214 +#### `pymdownx.superfences` + +The `*-experimental` suffix must be removed from the [custom fence][SuperFences] +class property, which is used to target code blocks to be rendered as [diagrams] +using [Mermaid.js]: + +=== "8.x" + + ``` yaml + markdown_extensions: + - pymdownx.superfences: + custom_fences: + - name: mermaid + class: mermaid + format: !!python/name:pymdownx.superfences.fence_code_format + ``` + +=== "7.x" + + ``` yaml + markdown_extensions: + - pymdownx.superfences: + custom_fences: + - name: mermaid + class: mermaid-experimental + format: !!python/name:pymdownx.superfences.fence_code_format + ``` + + [SuperFences]: setup/extensions/python-markdown-extensions.md#superfences + [diagrams]: reference/diagrams.md + [Mermaid.js]: https://mermaid-js.github.io/mermaid/ + #### `google_analytics` This option was [deprecated in MkDocs 1.2.0], as the implementation of a