client: Apply syntax highlight to included notes

This commit is contained in:
Elian Doran
2024-10-31 22:18:00 +02:00
parent dfa4f3cd84
commit 00209ec77a
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,6 @@ 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">
@@ -367,9 +366,7 @@ class NoteListRenderer {
separateWordSearch: false,
caseSensitive: false
});
}
applySyntaxHighlight($renderedContent);
}
$content.append($renderedContent);
$content.addClass(`type-${type}`);