mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
server-esm: Fix marked import issue
This commit is contained in:
parent
fb7c0fdb4c
commit
27c296fa6c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user