Skip to content

About

LaTeX to MathML rendering powered by TreeBlood

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goldmark-treeblood

goldmark-treeblood is an extension for goldmark that renders $LaTeX$ expressions as MathML, an open web standard for describing mathematical notation. Unlike MathJax or KaTeX, TreeBlood runs server-side, is written in pure Go, and has no dependencies outside the Go standard library.

Usage

To use goldmark-treeblood, import the goldmark-treeblood package

import "github.com/wyatt915/goldmark-treeblood"

and include treeblood.MathML in the list of extensions passed to goldmark

goldmark.New(
  goldmark.WithExtensions(
    // ...
    treeblood.MathML(),
  ),
  // ...
).Convert(src, out)

This extension respects both TeX-style delimiters $...$ and $$...$$ as well as their more modern AMS $LaTeX$ counterparts \(...\) and \[...\].

About

LaTeX to MathML rendering powered by TreeBlood

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址