A delightful Java application hacked together in an afternoon that can take markdown files generated by Exit WP and clean them up for deployment on a blog.
For basic usage on a single file:
mvn clean package
java -jar wpc.jar [filename.markdown]
If you want to quickly process multiple files in a directory, you can drop this into a Bash script called wpc.bash
:
#!/bin/bash
for FILE in "$@"; do
echo "Parsing: $FILE"
java -jar wpc.jar $FILE
done
And then run the following line of Bash inside the directory your converted posts are in:
find . -type f -name '*.markdown' -exec ./wpc.bash {} +