Skip to content

Commit 69fbaf7

Browse files
authored
Merge pull request #959 from Ji4n1ng/master
fix(rich-text-clipboard-to-markdown.sh): execution error
2 parents b81ac5e + f8979d8 commit 69fbaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/conversions/rich-text-clipboard-to-markdown.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ if ! command -v pandoc &> /dev/null; then
2020
fi
2121

2222
export LC_CTYPE=UTF-8
23-
osascript -e 'the clipboard as "HTML"'| perl -ne 'print chr foreach unpack("C*",pack("H*",substr($_,11,-3)))' | pandoc --from=html --to=gfm | pbcopy
23+
osascript -e 'the clipboard as «class RTF »' | perl -ne 'print chr foreach unpack("C*",pack("H*",substr($_,11,-3)))' | pandoc --from=rtf --to=gfm | pbcopy

0 commit comments

Comments
 (0)