Skip to content

Yash-Singh1/mdbook-mathjax-inline-preprocesser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

mdbook-mathjax-inline-preprocesser

Preprocesses mdbook markdown to allow you to use dollar signs inside your markdown for mathjax. I was too lazy to learn Rust so I quickly wrote this with a python script.

Configuration

Copy the main.py file into your book's main directory, or clone it with git submodules and link to it in your mdbook configuration:

[output.html]
mathjax-support = true

[preprocessor.mathjax]
command = 'python main.py' # or 'python mdbook-mathjax-inline-preprocesser/main.py' if you cloned with submodules
after = ['links']

Now, you can use block and inline dollar signs instead of escaped square brackets and/or parentheses:

$$a+b$$

Inside a sentence I can use $a+b$ as math.

About

Small mdbook preprocessor for inlining math equations in markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages