client: Apply syntax highlight to note preview

This commit is contained in:
Elian Doran
2024-10-31 22:14:54 +02:00
parent 3af29a78dc
commit dfa4f3cd84
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import attributeRenderer from "./attribute_renderer.js";
import libraryLoader from "./library_loader.js";
import treeService from "./tree.js";
import utils from "./utils.js";
import { applySyntaxHighlight } from "./syntax_highlight.js";
const TPL = `
<div class="note-list">
@@ -368,6 +369,8 @@ class NoteListRenderer {
});
}
applySyntaxHighlight($renderedContent);
$content.append($renderedContent);
$content.addClass(`type-${type}`);
} catch (e) {