Merge branch 'v2' of github.com:silverbulletmd/silverbullet into v2
This commit is contained in:
@@ -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)
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user