diff --git a/src/public/app/widgets/type_widgets/doc.ts b/src/public/app/widgets/type_widgets/doc.ts index 8008276ad..a3e6a7c2b 100644 --- a/src/public/app/widgets/type_widgets/doc.ts +++ b/src/public/app/widgets/type_widgets/doc.ts @@ -1,4 +1,5 @@ import type FNote from "../../entities/fnote.js"; +import { applySyntaxHighlight } from "../../services/syntax_highlight.js"; import TypeWidget from "./type_widget.js"; const TPL = `
@@ -66,6 +67,8 @@ export default class DocTypeWidget extends TypeWidget { const $img = $(el); $img.attr("src", dir + "/" + $img.attr("src")); }); + + applySyntaxHighlight(this.$content); } }