Skip to content

Commit

Permalink
Merge pull request #959 from Ji4n1ng/master
Browse files Browse the repository at this point in the history
fix(rich-text-clipboard-to-markdown.sh): execution error
  • Loading branch information
adilrc authored Aug 30, 2024
2 parents b81ac5e + f8979d8 commit 69fbaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/conversions/rich-text-clipboard-to-markdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 69fbaf7

Please sign in to comment.