Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sxyazi/marked-extended-latex
- Owner: sxyazi
- License: mit
- Created: 2022-03-09T14:26:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T03:19:34.000Z (7 months ago)
- Last Synced: 2024-04-24T03:54:08.194Z (7 months ago)
- Language: JavaScript
- Size: 4.06 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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$");
//