Muse owns muse-shaped files now
This commit is contained in:
parent
3e2ab6ec73
commit
bf444ccb1a
23 changed files with 1288 additions and 201 deletions
14
src/render/html/component/rule.ts
Normal file
14
src/render/html/component/rule.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import type { Rule } from "@proscenium/playbill";
|
||||
import { renderMarkdown } from "#lib";
|
||||
import { Section } from "./base/section";
|
||||
|
||||
export async function RuleSection(rule: Rule): Promise<string> {
|
||||
const renderedMarkdown = await renderMarkdown(rule.description);
|
||||
|
||||
return Section({
|
||||
title: rule.name,
|
||||
componentId: rule.id,
|
||||
content: renderedMarkdown,
|
||||
type: "rule",
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue