mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-06 23:57:36 +08:00
Update readme
This commit is contained in:
parent
b52da3bc6e
commit
874cce63c8
@ -92,8 +92,8 @@ Styles requires PostCSS like official CKEditor 5 plugins.
|
|||||||
InlineEditor.defaultConfig = {
|
InlineEditor.defaultConfig = {
|
||||||
// ...
|
// ...
|
||||||
math: {
|
math: {
|
||||||
engine: 'mathjax', // or katex or function (equation, element, display) => { ... }
|
engine: 'mathjax', // or katex or function. E.g. (equation, element, display) => { ... }
|
||||||
outputType: 'script', // or span or math
|
outputType: 'script', // or span
|
||||||
forceOutputType: false, // forces output to use outputType
|
forceOutputType: false, // forces output to use outputType
|
||||||
enablePreview: true // Enable preview view
|
enablePreview: true // Enable preview view
|
||||||
}
|
}
|
||||||
@ -120,7 +120,7 @@ It's possible to implement with engine config. For example, this feature can be
|
|||||||
InlineEditor.defaultConfig = {
|
InlineEditor.defaultConfig = {
|
||||||
// ...
|
// ...
|
||||||
math: {
|
math: {
|
||||||
engine: (equation, element, display, preview) => {
|
engine: ( equation, element, display, preview ) => {
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user