10000 GitHub - tylerecouture/summernote-math: A summernote plugin that uses KaTeX to insert math
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tylerecouture/summernote-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

summernote-math

A summernote plugin that uses KaTeX to insert rendered math.

Working Example

https://rawgit.com/tylerecouture/summernote-math/master/Example/example.html

Usage

  1. Include KaTex:

    1. https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css
    2. https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.js
  2. Include summernote-math.js:

  3. add math to your toolbar somewhere:

 $('#summernote').summernote({
     toolbar: [
         ...
         ['insert', ['pitcure', 'link', 'math']],
     ]
 });

LaTeX markup

Use LaTeX markup, as supported by KaTeX to insert math. For example:

c = \pm\sqrt{a^2 + b^2}

or

f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi

To Do

  • Add ability to edit existing math elements

About

A summernote plugin that uses KaTeX to insert math

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0