Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A quick shell script to use pandoc to convert markdown to libreoffice and open it.
#!/bin/bash
# usage:
if [ -f "$1" ]; then
file=$(basename "$1")
filename=${file%.*}
pandoc "$1" -V geometry:margin=1in -s -o "$filename".odt
lowriter "$filename".odt
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment