Skip to content

Runs a HTTP server which renders KaTeX, to speed up build times.

Notifications You must be signed in to change notification settings

mathshistory/katex-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@mathshistory/katex-server

Runs a HTTP server which renders KaTeX, to speed up build times.

When building a page for the Maths History website, the page can contain formula elements which need to get rendered with KaTeX, which is done using the katex command line tool. However, if a page contains many formulae, this means that repeated calls are needed, which significantly slows down the build with the overhead.

This runs a small HTTP server which takes input of KaTeX markup, and returns the rendered HTML.


The port is specified as the first command line argument, with the default being 5002.

The data sent to it should be an array of KaTeX formulae, and the response is an array of those formulae rendered as HTML.

About

Runs a HTTP server which renders KaTeX, to speed up build times.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published