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
-16
View File
@@ -1,21 +1,5 @@
import type { CodeWidgetContent } from "../types.ts";
import { syscall } from "../syscall.ts";
/**
* Renders a code widget.
* @param lang the language of the fenced code block
* @param body the body of the code to render
* @param pageName the name of the page the code widget appears on
* @returns the rendered code widget content
*/
export function render(
lang: string,
body: string,
pageName: string,
): Promise<CodeWidgetContent | null> {
return syscall("codeWidget.render", lang, body, pageName);
}
/**
* Refreshes all code widgets on the page that support it.
*/