lzanini / mdbook-katex

A preprocessor for mdBook, rendering LaTex equations to HTML at build time.
MIT License
205 stars 34 forks source link

Add Automated Testing #12

Closed kknives closed 3 years ago

kknives commented 3 years ago

First up: thanks for making this. It really helps with the math formatting in mdBook, not to mention Katex's speed over MathJax.

What does this PR do?

I added a Github Workflow, which runs cargo test on Windows, macOS and Linux whenever a commit is pushed to master or someone opens a PR. It also checks if the code has been formatted with cargo fmt

Also, now we can get a shiny build status badge on the README.md:

![build-status](https://github.com/lzanini/mdbook-katex/actions/workflows/test.yml/badge.svg)