mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
experimental math support
This commit is contained in:
@@ -162,7 +162,10 @@ const editorConfig = {
|
||||
'CodeBlock',
|
||||
'SelectAll',
|
||||
'IncludeNote',
|
||||
'CutToNote'
|
||||
'CutToNote',
|
||||
'Mathematics',
|
||||
'indentBlockShortcutPlugin',
|
||||
'removeFormatLinksPlugin'
|
||||
],
|
||||
toolbar: {
|
||||
items: []
|
||||
|
||||
@@ -104,6 +104,12 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
mention: mentionSetup,
|
||||
codeBlock: {
|
||||
languages: codeBlockLanguages
|
||||
},
|
||||
math: {
|
||||
engine: 'katex',
|
||||
outputType: 'span', // or script
|
||||
forceOutputType: false, // forces output to use outputType
|
||||
enablePreview: true // Enable preview view
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user