mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 14:35:40 +08:00
note revisions for code is now properly formatted, fixes #97
This commit is contained in:
parent
9720868f5a
commit
6bb3cfa9a3
1 changed files with 7 additions and 1 deletions
|
@ -54,7 +54,13 @@ $list.on('change', () => {
|
|||
const revisionItem = revisionItems.find(r => r.noteRevisionId === optVal);
|
||||
|
||||
$title.html(revisionItem.title);
|
||||
$content.html(revisionItem.content);
|
||||
|
||||
if (revisionItem.type === 'text') {
|
||||
$content.html(revisionItem.content);
|
||||
}
|
||||
else if (revisionItem.type === 'code') {
|
||||
$content.html($("<pre>").text(revisionItem.content));
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', "a[action='note-revision']", event => {
|
||||
|
|
Loading…
Reference in a new issue