/*
- * mpd -- A command-line based markdown presentation tool.
+ * mdp -- A command-line based markdown presentation tool.
* Copyright (C) 2014 Michael Goehler
*
* This program is free software: you can redistribute it and/or modify
// close file
fclose(input);
+ // replace stdin with current tty if input was a pipe
+ if(input == stdin)
+ freopen("/dev/tty", "rw", stdin);
+
if(debug > 0) {
markdown_debug(deck, debug);
}