Commit 93a24c3d authored by Georges Khaznadar's avatar Georges Khaznadar

new parser

parent f1d61c9d
#! /usr/bin/python3
import subprocess, sys, os
p = subprocess.Popen(
"pandoc -f rst -t dokuwiki",
shell=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE
)
if len(sys.argv) > 1:
infile=sys.argv[1]
else:
infile=os.stdin
with open(infile) as data:
p.write(data.read())
out, err = p.communicate()
os.stdout.write(out)
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