@@ -315,8 +315,6 @@ export default class RevisionsDialog extends BasicWidget {
this.$content.html(`
${fullRevision.content}
`);
if (this.$content.find("span.math-tex").length > 0) {
- await libraryLoader.requireLibrary(libraryLoader.KATEX);
-
renderMathInElement(this.$content[0], { trust: true });
}
} else if (revisionItem.type === "code") {
diff --git a/apps/client/src/widgets/find_in_html.ts b/apps/client/src/widgets/find_in_html.ts
index e4d47e623..fcbc35173 100644
--- a/apps/client/src/widgets/find_in_html.ts
+++ b/apps/client/src/widgets/find_in_html.ts
@@ -21,7 +21,7 @@ export default class FindInHtml {
}
async performFind(searchTerm: string, matchCase: boolean, wholeWord: boolean) {
- await import("script-loader!mark.js/dist/jquery.mark.min.js");
+ await import("mark.js");
const $content = await this.parent?.noteContext?.getContentElement();
@@ -42,7 +42,7 @@ export default class FindInHtml {
const containerTop = scrollingContainer?.getBoundingClientRect().top ?? 0;
const closestIndex = this.$results.toArray().findIndex(el => el.getBoundingClientRect().top >= containerTop);
this.currentIndex = closestIndex >= 0 ? closestIndex : 0;
-
+
await this.jumpTo();
res({
diff --git a/apps/client/src/widgets/highlights_list.ts b/apps/client/src/widgets/highlights_list.ts
index 8fc1ceb54..f37b82955 100644
--- a/apps/client/src/widgets/highlights_list.ts
+++ b/apps/client/src/widgets/highlights_list.ts
@@ -11,8 +11,8 @@ import RightPanelWidget from "./right_panel_widget.js";
import options from "../services/options.js";
import OnClickButtonWidget from "./buttons/onclick_button.js";
import appContext, { type EventData } from "../components/app_context.js";
-import libraryLoader from "../services/library_loader.js";
import type FNote from "../entities/fnote.js";
+import katex from "../services/math.js";
const TPL = /*html*/`
<% // TriliumNextTODO: move the css file to ${assetPath}/stylesheets/ %>
-
+
diff --git a/apps/server/src/assets/views/mobile.ejs b/apps/server/src/assets/views/mobile.ejs
index a7f7643a5..254dcaed5 100644
--- a/apps/server/src/assets/views/mobile.ejs
+++ b/apps/server/src/assets/views/mobile.ejs
@@ -10,9 +10,6 @@
TriliumNext Notes
- <% // TriliumNextTODO: move the css file to ${assetPath}/stylesheets/ %>
-
-