mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
docs(CHANGES): Note katexRenderOptions
This commit is contained in:
parent
8a9e20eb45
commit
f024563960
18
CHANGELOG.md
18
CHANGELOG.md
@ -3,6 +3,24 @@
|
|||||||
## Current
|
## Current
|
||||||
|
|
||||||
- Add latest changes here
|
- Add latest changes here
|
||||||
|
- New configuration setting, `katexRenderOptions` (optional) - for KaTeX engines. Accepts object of `katex.render()` / `katex.renderToString()` [options](https://katex.org/docs/options.html):
|
||||||
|
|
||||||
|
```js
|
||||||
|
InlineEditor.defaultConfig = {
|
||||||
|
// ...
|
||||||
|
math: {
|
||||||
|
engine: 'katex'
|
||||||
|
katexRenderOptions: {
|
||||||
|
macros: {
|
||||||
|
"\\neq": "\\mathrel{\\char`≠}",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
via PR [#64](https://github.com/isaul32/ckeditor5-math/pull/64) by [Tony
|
||||||
|
Narlock](https://www.git-pull.com).
|
||||||
|
|
||||||
## [34.1.0](https://github.com/isaul32/ckeditor5-math/compare/v34.0.0...v34.1.0) (2022-06-21)
|
## [34.1.0](https://github.com/isaul32/ckeditor5-math/compare/v34.0.0...v34.1.0) (2022-06-21)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user