Skip to content

upupming/docsify-katex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docsify-katex

npm bundle size (minified) npm

Add KaTeX support for your docsify project. Demo

KaTeX is a faster alternative to MathJax. This plugin makes it easy to support in your docsify project.

Usage

Add docsify-katex CDN to your index.html:

<!-- CDN files for docsify-katex -->
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css">
<!-- Put them above docsify.min.js -->
<script src="//cdn.jsdelivr.net/npm/docsify@latest/lib/docsify.min.js"></script>

Build on your own

npm run build

LaTeX Quick reference

Inspired by

  1. vscode-markdown
  2. neilsustc/markdown-it-katex

Credits

  1. markdown-it
  2. KaTeX