mirror of
https://github.com/zadam/trilium.git
synced 2025-12-19 22:59:53 +01:00
refactor(client): split text content rendering to separate module
This commit is contained in:
@@ -274,7 +274,7 @@ function getMimeTypeClass(mime: string) {
|
||||
return `mime-${mime.toLowerCase().replace(/[\W_]+/g, "-")}`;
|
||||
}
|
||||
|
||||
function isHtmlEmpty(html: string) {
|
||||
export function isHtmlEmpty(html: string) {
|
||||
if (!html) {
|
||||
return true;
|
||||
} else if (typeof html !== "string") {
|
||||
|
||||
Reference in New Issue
Block a user