Skip to content

Commit dc92cb1

Browse files
committed
add a redundant case for "file:" prefix
1 parent d868b92 commit dc92cb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/markup/orgmode/orgmode_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ func TestRender_Media(t *testing.T) {
8282
`<p><video src="https://example.com/example.mp4">https://example.com/example.mp4</video></p>`)
8383

8484
// test [[LINK][DESCRIPTION]] syntax with "file:" prefix
85+
test(`[[https://example.com/][file:https://example.com/foo%20bar.svg]]`,
86+
`<p><a href="https://example.com/"><img src="https://example.com/foo%20bar.svg" alt="https://example.com/foo%20bar.svg" /></a></p>`)
8587
test(`[[file:https://example.com/foo%20bar.svg][Goto Image]]`,
8688
`<p><a href="https://example.com/foo%20bar.svg">Goto Image</a></p>`)
8789
test(`[[file:https://example.com/link][https://example.com/image.jpg]]`,

0 commit comments

Comments
 (0)