From f8979d86a42f4aeae9b959d201c672be88e1a32b Mon Sep 17 00:00:00 2001 From: Jianing Wang Date: Wed, 28 Aug 2024 20:37:53 +0800 Subject: [PATCH] fix(rich-text-clipboard-to-markdown.sh): execution error --- commands/conversions/rich-text-clipboard-to-markdown.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/conversions/rich-text-clipboard-to-markdown.sh b/commands/conversions/rich-text-clipboard-to-markdown.sh index 7cde8493f..5bf7d5d1d 100755 --- a/commands/conversions/rich-text-clipboard-to-markdown.sh +++ b/commands/conversions/rich-text-clipboard-to-markdown.sh @@ -20,4 +20,4 @@ if ! command -v pandoc &> /dev/null; then fi export LC_CTYPE=UTF-8 -osascript -e 'the clipboard as "HTML"'| perl -ne 'print chr foreach unpack("C*",pack("H*",substr($_,11,-3)))' | pandoc --from=html --to=gfm | pbcopy +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