Merge branch 'v2' of github.com:silverbulletmd/silverbullet into v2

This commit is contained in:
Zef Hemel
2025-03-29 13:07:50 +01:00
39 changed files with 468 additions and 560 deletions
+8
View File
@@ -67,4 +67,12 @@ export const jsApi = new LuaTable({
* @returns The JSON string.
*/
stringify: new LuaBuiltinFunction((_sf, val) => JSON.stringify(val)),
// Exposing DOM functions
createElement: new LuaBuiltinFunction((_sf, tag) =>
document.createElement(tag)
),
createTextNode: new LuaBuiltinFunction((_sf, text) =>
document.createTextNode(text)
),
});