https://github.com/stepicorg/katex-ckeditor-plugin
KaTeX plugin for CKEditor 4
https://github.com/stepicorg/katex-ckeditor-plugin
Last synced: 4 months ago
JSON representation
KaTeX plugin for CKEditor 4
- Host: GitHub
- URL: https://github.com/stepicorg/katex-ckeditor-plugin
- Owner: StepicOrg
- Created: 2019-12-18T11:52:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-18T22:05:10.000Z (about 6 years ago)
- Last Synced: 2025-03-22T08:30:03.818Z (10 months ago)
- Language: JavaScript
- Homepage: https://ckeditor.com/cke4/addon/katex
- Size: 43 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
KaTeX plugin for CKEditor 4
[](https://www.npmjs.com/package/katex-ckeditor-plugin)
----------------
### Installation:
- Copy files to the "plugins" folder of CKEditor,
then add `config.extraPlugins = 'katex';` in config.js.
Please note, source code is ECMAScript 2016+. If you need to support old
browsers, transpile the code by running `npm run build`, then use `dist/` folder.
- Or use official builder "https://ckeditor.com/cke4/builder".
### Configuration:
```js
// [Required] Pathes to the CSS and JS files of katex library.
config.katexLibCss = '';
config.katexLibJs = '';
// Default class of an element that will be converted into a widget.
config.katexClass = 'math-tex';
// List of delimiters to look for math. Each delimiter is array of:
// left delimiter (String), right delimiter (String), display mode (Boolean).
// By default `\(` and `\[` are used, but `$` and `$$` are also supported.
config.katexDelimiters = [...];
// Additional options to pass into `katex.renderToString`.
config.katexOptions = {...};
```
### Screenshots:

