Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sxyazi/marked-extended-latex

LaTex support to Marked
https://github.com/sxyazi/marked-extended-latex

Last synced: 12 days ago
JSON representation

LaTex support to Marked

Awesome Lists containing this project

README

        

# marked-extended-latex

LaTex support to Marked

# Usage

```typescript
import Katex from "katex";
import Marked from "marked";
import extendedLatex from "marked-extended-latex";

const options = {
render: (formula: string, displayMode: boolean) => Katex.renderToString(formula, { displayMode })
};

marked.use(extendedLatex(options));
marked("$a+b=c$");
//