Skip to content

Commit 99bee04

Browse files
author
Oleksandr Kulkov
authored
Use $ and $$ as LaTeX wrappers (cp-algorithms#952)
1 parent 4b74f34 commit 99bee04

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ extra_css:
3636
markdown_extensions:
3737
- pymdownx.arithmatex:
3838
generic: true
39+
tex_inline_wrap: ['$', '$']
40+
tex_block_wrap: ['$$', '$$']
3941
- pymdownx.highlight
4042
- admonition
4143
- pymdownx.details

src/javascript/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ MathJax = {
3838
}
3939
},
4040
tex: {
41-
inlineMath: [["\\(", "\\)"]],
42-
displayMath: [["\\[", "\\]"]],
41+
inlineMath: [["$", "$"], ["\\(", "\\)"]],
42+
displayMath: [["$$", "$$"], ["\\[", "\\]"]],
4343
processEscapes: true,
4444
processEnvironments: true
4545
},

0 commit comments

Comments
 (0)