mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
server-esm: Fix marked import issue
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
import marked from "marked";
|
||||
import { parse } from "marked";
|
||||
import htmlSanitizer from "../html_sanitizer.js";
|
||||
import importUtils from "./utils.js";
|
||||
|
||||
function renderToHtml(content: string, title: string) {
|
||||
const html = marked.parse(content, {
|
||||
const html = parse(content, {
|
||||
async: false
|
||||
}) as string;
|
||||
const h1Handled = importUtils.handleH1(html, title); // h1 handling needs to come before sanitization
|
||||
|
||||
Reference in New Issue
Block a user