new math rendering on web

This commit is contained in:
edoapra 2020-08-13 16:38:43 -07:00
parent 3bc29f291d
commit 625f1d7729
No known key found for this signature in database
GPG key ID: 472C4EBB4F3AEDFA
3 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,2 @@
index.md
Density-Functional-Theory-for-Molecules.md

View file

@ -8,7 +8,20 @@ theme:
use_directory_urls: false
markdown_extensions:
- smarty
- toc
- toc:
permalink: True
- tables
# - markdown_katex:
# no_inline_svg: True
# insert_fonts_css: True
# macro-file: macros.tex
# - pymdownx.arithmatex
#extra_javascript:
# - 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
- mdx_math:
extra_javascript:
- https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML
- mathjaxhelper.js
plugins:
- search
- alternate-link

7
contrib/mkdocs/remove_svg.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
gsed \
-e 's/<img alt=\"\$\$/\$\$/' \
-e 's/<img alt=\"\\(/\\(/' \
-e 's/\" src=\"https:\/\/raw.githubusercontent.com\/wiki\/nwchemgit\/nwchem\/svgs.*//' \
-e 's/\" src=\"svgs.*//' \
$1