fix: fix server build not running due to missing file

as discussed in #1010 – quick & dirty fix by copying over the file into the server side of things
Comment added to both files, about deduplication in the future

fixes #1010
This commit is contained in:
Panagiotis Papadopoulos
2025-01-20 20:15:39 +01:00
parent 7f15f8a7de
commit 8f09b6a192
3 changed files with 221 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ renderer.code = ({text, lang, escaped}: Tokens.Code) => {
import htmlSanitizer from "../html_sanitizer.js";
import importUtils from "./utils.js";
import { getMimeTypeFromHighlightJs, MIME_TYPE_AUTO, normalizeMimeTypeForCKEditor } from "../../public/app/services/mime_type_definitions.js";
import { getMimeTypeFromHighlightJs, MIME_TYPE_AUTO, normalizeMimeTypeForCKEditor } from "./mime_type_definitions.js";
function renderToHtml(content: string, title: string) {
const html = parse(content, {