Skip to content

Lambdaris/typst-auto-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This script acts like auto-render for KaTeX and render mathmatical text in Typst form based on wypst.

Build

git clone https://github.com/Lambdaris/typst-auto-render.git
cd typst-auto-render
npm install
npm run build

Usage

<script src="typst-auto-render.js"></script>
<script>
    document.addEventListener("DOMContentLoaded", function () {
        renderMathInElement(document.body, {
            throwOnError: false
        });
    });
</script>

It has same interface with KaTeX auto render and the options is much like.

Note customization for delimeters is not supported and mathmatical expressions are wrapped in same way as Typst. Users could write "\$" to type an literal "$" (might be "\\$" in markdown being converted to html).

About

A script to render typst math expressions in web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published