Markdown widget removal

This commit is contained in:
Zef Hemel
2025-03-22 08:40:26 +01:00
parent 63f7314256
commit 55be05031c
22 changed files with 85 additions and 728 deletions
+3 -4
View File
@@ -8,14 +8,14 @@ import {
import { parse } from "$common/markdown_parser/parse_tree.ts";
import { extendedMarkdownLanguage } from "$common/markdown_parser/parser.ts";
import { renderToText } from "@silverbulletmd/silverbullet/lib/tree";
import { activeWidgets } from "./markdown_widget.ts";
import {
attachWidgetEventHandlers,
moveCursorIntoText,
} from "./widget_util.ts";
import { expandCodeWidgets } from "$common/markdown.ts";
import { expandMarkdown } from "$common/markdown.ts";
import { LuaStackFrame, LuaTable } from "$common/space_lua/runtime.ts";
import { jsonToMDTable } from "$common/markdown_util.ts";
import { activeWidgets } from "./code_widget.ts";
export type LuaWidgetCallback = (
bodyText: string,
@@ -126,10 +126,9 @@ export class LuaWidget extends WidgetType {
const sf = LuaStackFrame.createWithGlobalEnv(
client.clientSystem.spaceLuaEnv.env,
);
mdTree = await expandCodeWidgets(
mdTree = await expandMarkdown(
client,
mdTree,
this.client.currentPage,
client.clientSystem.spaceLuaEnv.env,
sf,
);