Commit c5f7eb8b authored by Jonas Neugebauer's avatar Jonas Neugebauer

New markdown actions for Alfred

New:
- Markdown2Richtext: Converts markdown files to rtf using pandoc
parent a4e0e6dd
# Converts any markdown file to html using
# CommonMark (http://commonmark.org) and copies all tags with
# tag (https://github.com/jdberry/tag/).
IFS=" "
files="{query}"
for file in $files; do
newfile="${file%.*}.rtf"
/usr/local/bin/pandoc -r commonmark -w rtf -s -out "$newfile" "$file"
tags=`/usr/local/bin/tag -N "$file"`
/usr/local/bin/tag --set $tags "$newfile"
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment