Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010753
markdown.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
781 B
Referenced Files
None
Subscribers
None
markdown.ts
View Options
import
{
FlatTemplatable
,
tempstream
}
from
"tempstream"
;
import
{
Component
}
from
"../component.js"
;
import
{
MarkdownArgument
}
from
"../component-arguments/markdown.js"
;
import
{
ExtractStructuredComponentArgumentsParsed
,
JDDContext
,
}
from
"../index.js"
;
const
component_arguments
=
{
markdown
:
new
MarkdownArgument
()
}
as
const
;
export
class
Markdown
extends
Component
<
typeof
component_arguments
>
{
getArguments
()
{
return
component_arguments
;
}
toHTML
(
{
markdown
,
}
:
ExtractStructuredComponentArgumentsParsed
<
typeof
component_arguments
>
,
classes
:
string
[],
{
render_markdown
,
language
}
:
JDDContext
)
:
FlatTemplatable
{
return
tempstream
`<section class="
${
classes
.
join
(
" "
)
}
">
${
render_markdown
(
language
,
markdown
)
}
</section>`
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:47 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
625343
Default Alt Text
markdown.ts (781 B)
Attached To
Mode
rJDD jdd
Attached
Detach File
Event Timeline
Log In to Comment