Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:white_check_mark: Declare the Lute HTML regression test global https://github.com/siyuan-note/siyuan/issues/20656

Danieleede5cbf7b08
diff --git a/app/tests/luteHtmlDocument.test.js b/app/tests/luteHtmlDocument.test.js
index 0430ba011a..f893eaa016 100644
--- a/app/tests/luteHtmlDocument.test.js
+++ b/app/tests/luteHtmlDocument.test.js
@@ -1,6 +1,7 @@
const {test} = require("node:test");
const assert = require("node:assert/strict");
require("../stage/protyle/js/lute/lute.min.js");
+const {Lute} = globalThis;
test("HTML documents convert with DOCTYPE and leading comments", () => {
for (const prefix of ["", "<!DOCTYPE html>", "<!-- comment --><!doctype html>"]) {