mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 00:02:28 +08:00
feat(in-app-help): show syntax highlighting
This commit is contained in:
parent
b298f4acea
commit
989918efe6
@ -1,4 +1,5 @@
|
|||||||
import type FNote from "../../entities/fnote.js";
|
import type FNote from "../../entities/fnote.js";
|
||||||
|
import { applySyntaxHighlight } from "../../services/syntax_highlight.js";
|
||||||
import TypeWidget from "./type_widget.js";
|
import TypeWidget from "./type_widget.js";
|
||||||
|
|
||||||
const TPL = `<div class="note-detail-doc note-detail-printable">
|
const TPL = `<div class="note-detail-doc note-detail-printable">
|
||||||
@ -66,6 +67,8 @@ export default class DocTypeWidget extends TypeWidget {
|
|||||||
const $img = $(el);
|
const $img = $(el);
|
||||||
$img.attr("src", dir + "/" + $img.attr("src"));
|
$img.attr("src", dir + "/" + $img.attr("src"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
applySyntaxHighlight(this.$content);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user