mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-02-25 21:58:40 +01:00
Updated upgrade guide
This commit is contained in:
parent
1316d8d184
commit
3f8a0578b8
@ -66,6 +66,38 @@ viewports]:
|
|||||||
[Tabbed]: setup/extensions/python-markdown-extensions.md#tabbed
|
[Tabbed]: setup/extensions/python-markdown-extensions.md#tabbed
|
||||||
[better behavior on mobile viewports]: https://twitter.com/squidfunk/status/1424740370596958214
|
[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`
|
#### `google_analytics`
|
||||||
|
|
||||||
This option was [deprecated in MkDocs 1.2.0], as the implementation of a
|
This option was [deprecated in MkDocs 1.2.0], as the implementation of a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user