Page MenuHomeSealhub

No OneTemporary

diff --git a/src/components/markdown.ts b/src/components/markdown.ts
index 345272d..7f8aca5 100644
--- a/src/components/markdown.ts
+++ b/src/components/markdown.ts
@@ -1,24 +1,24 @@
-import { FlatTemplatable, tempstream } from "tempstream";
+import { FlatTemplatable } from "tempstream";
import { Component } from "../component";
import {
ExtractStructuredComponentArgumentsValues,
MarkdownArgument,
} from "../component-arguments";
import { marked } from "marked";
const component_arguments = <const>{ markdown: new MarkdownArgument() };
type A = ExtractStructuredComponentArgumentsValues<typeof component_arguments>;
export class Markdown extends Component<typeof component_arguments> {
getArguments() {
return component_arguments;
}
toHTML({
markdown,
}: ExtractStructuredComponentArgumentsValues<
typeof component_arguments
>): FlatTemplatable {
return marked.parse(markdown);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Fri, Nov 22, 19:00 (11 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547163
Default Alt Text
(928 B)

Event Timeline