1
0
silverbullet/plug-api/silverbullet-syscall/code_widget.ts

11 lines
267 B
TypeScript
Raw Normal View History

2023-10-31 09:33:38 +00:00
import type { CodeWidgetContent } from "$sb/types.ts";
import { syscall } from "./syscall.ts";
export function render(
lang: string,
body: string,
pageName: string,
): Promise<CodeWidgetContent> {
return syscall("codeWidget.render", lang, body, pageName);
}