editorjs-simple-latex

1.0.4 • Public • Published

editorjs-latex

Tools for entering latex in editorjs - based on katex

example

how to use

add tools option like this

    <script type="module">
      const editor = new EditorJS({
        autofocus: true,
        tools: {
          latex: {
            class: LaTeX,
          },
        },
      });
    </script>

typescript

declare type like this in d.ts file

declare module 'editorjs-simple-latex' {
    import LaTeX from 'editorjs-simple-latex';
    export = LaTeX;
}

Package Sidebar

Install

npm i editorjs-simple-latex

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

688 kB

Total Files

4

Last publish

Collaborators

  • dev2820