Skip to content

Instantly share code, notes, and snippets.

@uriel1998 uriel1998/toodt.sh
Created Apr 25, 2014

Embed
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
You can’t perform that action at this time.