File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,10 +89,16 @@ The single-dollar delimiter (`$...$`) for inline math is disabled by
8989default, but can be enabled by passing ` enable_dollar_delimiter=True `
9090in the extension configuration.
9191
92+ If you want to use [ GitLab-style delimiters] (`` $`...`$ `` for inline math,
93+ and a code block-like `` ```math...``` `` syntax for standalone), use
94+ ` use_gitlab_delimiters=True ` configuration option.
95+
9296If you want to this extension to generate a preview node (which will be shown
9397when MathJax has not yet processed the node, or when JavaScript is unavailable),
9498use ` add_preview=True ` configuration option.
9599
100+ [ GitLab-style delimiters ] : https://gitlab.com/gitlab-org/gitlab/blob/master/doc/user/markdown.md#math
101+
96102Notes
97103-----
98104
@@ -104,5 +110,5 @@ This extension also works with Katex. Use the following in your page `<head>`:
104110``` html
105111<link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css" crossorigin =" anonymous" >
106112<script src =" https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js" crossorigin =" anonymous" ></script >
107- <script src =" https://cdn.jsdelivr.net/npm/katex/dist/contrib/mathtex-script-type.min.js" defer ></script >
113+ <script src =" https://cdn.jsdelivr.net/npm/katex/dist/contrib/mathtex-script-type.min.js" defer ></script >
108114```
You can’t perform that action at this time.
0 commit comments