swiftDialog icon indicating copy to clipboard operation
swiftDialog copied to clipboard

Markdown inline images do not support paths to local image files, only http[s] urls

Open glenfarclas17 opened this issue 2 years ago • 3 comments

I just downloaded v2.0 to start playing around with swiftDialog - thanks for the amazing work!

I just wanted to report this issue I found pretty quickly:

The CommonMark Spec seems to indicate that the source for inline images can be a local file, and a relative or absolute path can be used. However when I try this

dialog --title 'Helllo World' --message "\![foo](/path/to/a/local/file.png)" 

or a multiline version

read -r -d '' msg <<'EOF'
This is the line _above_ the image  
![foo](/path/to/a/local/file.png)  
This is the line **below** the image
EOF

dialog --title 'Helllo World' --message "$msg" 

The image is never shown.

Allowing this would let me use markdown to have both a message and an image at the same time.

Thanks so much! -Chris

glenfarclas17 avatar Nov 18 '22 00:11 glenfarclas17