mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
Fix mathui tests
This commit is contained in:
@@ -17,7 +17,16 @@ describe( 'AutoMath - integration', () => {
|
||||
|
||||
return ClassicTestEditor
|
||||
.create( editorElement, {
|
||||
plugins: [ Mathematics, AutoMath, Typing, Paragraph ]
|
||||
plugins: [ Mathematics, AutoMath, Typing, Paragraph ],
|
||||
math: {
|
||||
engine: ( equation, element, display ) => {
|
||||
if ( display ) {
|
||||
element.innerHTML = '\\[' + equation + '\\]';
|
||||
} else {
|
||||
element.innerHTML = '\\(' + equation + '\\)';
|
||||
}
|
||||
}
|
||||
}
|
||||
} )
|
||||
.then( newEditor => {
|
||||
editor = newEditor;
|
||||
|
||||
Reference in New Issue
Block a user