tridactyl/scripts/amo_text_to_clipboard.sh
2018-09-30 15:25:14 +00:00

6 lines
247 B
Bash
Executable file

#!/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.
"$(npm bin)/marked" doc/amo.md | sed -r "s/<.?p>//g" | sed -r "s/<.?h.*>//g" | xclip -selection "clipboard"