Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F969344
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
928 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
R130 jdd
Attached
Detach File
Event Timeline
Log In to Comment