fix(client/revisions): improper rendering of nested lists (closes #1177)

This commit is contained in:
Elian Doran 2025-02-13 20:57:34 +02:00
parent e2cd875c03
commit 4b597c5d2c
No known key found for this signature in database

View File

@ -297,7 +297,7 @@ export default class RevisionsDialog extends BasicWidget {
const fullRevision = await server.get<FullRevision>(`revisions/${revisionItem.revisionId}`);
if (revisionItem.type === "text") {
this.$content.html(fullRevision.content);
this.$content.html(`<div class="ck-content">${fullRevision.content}</div>`);
if (this.$content.find("span.math-tex").length > 0) {
await libraryLoader.requireLibrary(libraryLoader.KATEX);