Skip to content

Commit d9bbbe7

Browse files
authored
Merge pull request #36 from python-project-templates/tkp/mystext
Enable more myst extensions
2 parents 27b78e5 + 3894519 commit d9bbbe7

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

docs/src/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pygments_style = "sphinx"
132132

133133
```toml
134134
[tool.yardang]
135-
myst_enable_extensions = ["colon_fence"]
135+
myst_enable_extensions = ["amsmath", "colon_fence", "dollarmath", "html_image"]
136136
myst_fence_as_directive = ["mermaid"]
137137
```
138138

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ language = "en"
157157
pygments_style = "sphinx"
158158

159159
# myst/myst-nb
160-
myst_enable_extensions = ["colon_fence"]
160+
myst_enable_extensions = ["amsmath", "colon_fence", "dollarmath", "html_image"]
161161
myst_fence_as_directive = ["mermaid"]
162162
nb_execution_mode = "off"
163163
nb_execution_excludepatterns = []

yardang/build.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,22 @@ def generate_docs_configuration(
8383
"language": "en",
8484
"pygments_style": "sphinx",
8585
# myst/myst-nb
86-
"myst_enable_extensions": ["colon_fence"],
86+
"myst_enable_extensions": [
87+
"amsmath",
88+
# "attrs_inline",
89+
"colon_fence",
90+
# "deflist",
91+
"dollarmath",
92+
# "fieldlist",
93+
# "html_admonition",
94+
"html_image",
95+
# "linkify",
96+
# "replacements",
97+
# "smartquotes",
98+
# "strikethrough",
99+
# "substitution",
100+
# "tasklist",
101+
],
87102
"myst_fence_as_directive": ["mermaid"],
88103
"nb_execution_mode": "off",
89104
"nb_execution_excludepatterns": [],

0 commit comments

Comments
 (0)