Skip to content

Commit 60aebe6

Browse files
author
James Brundage
committed
feat: openEmbedding.get_Markdown ( Fixes #14 )
Only linking an image if we have an image
1 parent 1a87d9a commit 60aebe6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Types/openEmbedding/get_Markdown.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
"[![$($this.title)]($($this.thumbnail_url))]($($this.url))"
1+
if ($this.thumbnail_url) {
2+
return "[![$($this.title)]($($this.thumbnail_url))]($($this.url))"
3+
}
4+
elseif ($this.title) {
5+
"[$($this.title)]($($this.url))"
6+
}

0 commit comments

Comments
 (0)