Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7317079
markdown.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
692 B
Referenced Files
None
Subscribers
None
markdown.ts
View Options
import
{
FlatTemplatable
}
from
"tempstream"
;
import
{
Component
}
from
"../component.js"
;
import
{
marked
}
from
"marked"
;
import
{
insert_nbsp
}
from
"../utils/insert_nbsp.js"
;
import
{
MarkdownArgument
}
from
"../component-arguments/markdown.js"
;
import
{
ExtractStructuredComponentArgumentsParsed
}
from
"../index.js"
;
const
component_arguments
=
<
const
>
{
markdown
:
new
MarkdownArgument
()
};
export
class
Markdown
extends
Component
<
typeof
component_arguments
>
{
getArguments
()
{
return
component_arguments
;
}
toHTML
({
markdown
,
}
:
ExtractStructuredComponentArgumentsParsed
<
typeof
component_arguments
>
)
:
FlatTemplatable
{
return
marked
.
parse
(
insert_nbsp
(
markdown
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Jul 13, 04:23 (15 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
802375
Default Alt Text
markdown.ts (692 B)
Attached To
Mode
rJDD jdd
Attached
Detach File
Event Timeline
Log In to Comment