mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
math support WIP
This commit is contained in:
@@ -49,7 +49,7 @@ const PRINT_THIS = {js: ["libraries/printThis.js"]};
|
||||
const CALENDAR_WIDGET = {css: ["stylesheets/calendar.css"]};
|
||||
|
||||
const KATEX = {
|
||||
js: [ "libraries/katex/katex.min.js" ],
|
||||
js: [ "libraries/katex/katex.min.js", "libraries/katex/auto-render.min.js" ],
|
||||
css: [ "libraries/katex/katex.min.css" ]
|
||||
};
|
||||
|
||||
|
||||
@@ -108,6 +108,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
math: {
|
||||
engine: 'katex',
|
||||
outputType: 'span', // or script
|
||||
lazyLoad: async () => await libraryLoader.requireLibrary(libraryLoader.KATEX),
|
||||
forceOutputType: false, // forces output to use outputType
|
||||
enablePreview: true // Enable preview view
|
||||
}
|
||||
|
||||
@@ -197,6 +197,8 @@ body {
|
||||
--ck-color-todo-list-checkmark-border: var(--main-border-color);
|
||||
|
||||
--ck-color-engine-placeholder-text: var(--muted-text-color);
|
||||
|
||||
--ck-z-modal: 10000;
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -224,4 +226,4 @@ table td, table th {
|
||||
|
||||
.modal-backdrop {
|
||||
background-color: var(--modal-backdrop-color) !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user