Improve transclusions (#1505)

* Remove `documentUrlPrefix`

This seems to be a relic from the time SB used `fs/` as a file prefix on the server

* Move and rename files

* Factor out more code

* Make `expandMarkdown` and `renderMarkdownToHTML` handle transclusions properly

* Typo
This commit is contained in:
MrMugame
2025-08-26 13:21:29 +02:00
committed by GitHub
parent 9faee069a9
commit fa8bfdeef7
8 changed files with 423 additions and 448 deletions
+2 -2
View File
@@ -12,9 +12,9 @@ import {
attachWidgetEventHandlers,
moveCursorIntoText,
} from "./widget_util.ts";
import { expandMarkdown } from "../markdown.ts";
import { expandMarkdown } from "../markdown/inline.ts";
import { LuaStackFrame, LuaTable } from "../../lib/space_lua/runtime.ts";
import { isBlockMarkdown, jsonToMDTable } from "../markdown_util.ts";
import { isBlockMarkdown, jsonToMDTable } from "../markdown/result_render.ts";
import { activeWidgets } from "./code_widget.ts";
export type LuaWidgetCallback = (