Skip to content

Commit 529c666

Browse files
committed
Update the call to pandoc to include mathjax.
The HTML was not rendering math properly because no javascript library was included. Adding --mathjax flag to the pandoc call fixes this.
1 parent aa13b7f commit 529c666

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/generate_documentation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@
6161
# update all paths to images and write to file
6262
fp.write(rst_content.replace("docs/images", "./images"))
6363
fp.flush()
64-
os.system(f"pandoc -s {fp.name} -o {f_name[:-3]}.html -c {css_file_name}")
64+
os.system(
65+
f"pandoc -s {fp.name} -o {f_name[:-3]}.html -c {css_file_name} --mathjax"
66+
)

0 commit comments

Comments
 (0)