diff --git a/scripts/amo_text_to_clipboard.sh b/scripts/amo_text_to_clipboard.sh new file mode 100755 index 00000000..8ccfd9ff --- /dev/null +++ b/scripts/amo_text_to_clipboard.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Put the AMO flavour text in your clipboard for easy pasting. +# AMO doesn't support all HTML in markdown so we strip it out. + +marked doc/amo.md | sed -r "s/<.?p>//g" | sed -r "s/<.?h.*>//g" | xclip -selection "clipboard"