Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7104498
markdown.test.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
718 B
Referenced Files
None
Subscribers
None
markdown.test.ts
View Options
import
{
FileManager
}
from
"@sealcode/file-manager"
;
import
{
makeSimpleEnglishJDDContext
}
from
"./jdd-context.js"
;
import
assert
from
"assert"
;
describe
(
"markdown"
,
()
=>
{
it
(
"does not insert soft hyphens into links"
,
async
()
=>
{
const
{
render_markdown
,
language
}
=
makeSimpleEnglishJDDContext
({
file_manager
:
new
FileManager
(
"/tmp"
,
"/uploaded_files"
),
});
const
markdown
=
`some freeform text with multiple words and [a link with description](/multiple-segments/)`
;
const
html
=
await
render_markdown
(
language
,
markdown
);
assert
.
strictEqual
(
html
,
`<p>some freeform text with multiple words and <a href="/multiple-segments/">a link with description</a></p>\n`
);
});
});
File Metadata
Details
Attached
Mime Type
text/html
Expires
Thu, Jul 3, 03:08 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
742543
Default Alt Text
markdown.test.ts (718 B)
Attached To
Mode
rJDD jdd
Attached
Detach File
Event Timeline
Log In to Comment