Skip to content

bhattiasad99/draft-js-latex-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Draft.js LaTeX Plugin

A Draft.js plugin to render and edit LaTeX. Modified this KaTeX module to make it compatible with the widely used draft-js-plugins architecture.

Setup

npm i draft-js-latex-plugin

Usage

import { getLaTeXPlugin } from 'draft-js-latex-plugin'
import 'draft-js-latex-plugin/lib/styles.css'
import 'katex/dist/katex.min.css'

const LaTeXPlugin = getLaTeXPlugin()

const plugins = [LaTeXPlugin]

Key bindings

  • Press $ for starting Inline TeX
  • Press CMD + M for starting Tex Block
  • To write the $ character, type \$

About

A LaTeX plugin for Draft.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.8%
  • CSS 3.2%