OSDN Git Service

feat: support math fences
authorIr1dXD <sirius.caffrey@gmail.com>
Thu, 22 Nov 2018 11:49:07 +0000 (19:49 +0800)
committerGitHub <noreply@github.com>
Thu, 22 Nov 2018 11:49:07 +0000 (19:49 +0800)
support
    ```math

mkdocs.yml

index b67e44d..e821ce1 100644 (file)
@@ -300,7 +300,11 @@ markdown_extensions:
   - pymdownx.mark
   - pymdownx.progressbar
   - pymdownx.smartsymbols
-  - pymdownx.superfences
+  - pymdownx.superfences:
+      custom_fences:
+        - name: math
+          class: arithmatex
+          format: !!python/name:pymdownx.arithmatex.fence_mathjax_format
   - pymdownx.tasklist:
       custom_checkbox: true
   - pymdownx.tilde