summaryrefslogtreecommitdiff
path: root/extract.py
diff options
context:
space:
mode:
Diffstat (limited to 'extract.py')
-rwxr-xr-xextract.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/extract.py b/extract.py
index c7e35b9..793b502 100755
--- a/extract.py
+++ b/extract.py
@@ -92,6 +92,8 @@ def main():
os.link("pelicanconf.py", "pelican/pelicanconf.py")
+ wiki_to_markdown = trac2md.Trac2Markdown()
+
keep = Filter()
first_published = {}
@@ -105,7 +107,7 @@ def main():
#print(slug, row.version)
with open("wiki/{}.trac".format(slug), "w") as f:
f.write(row.text)
- md = markdown_header(row, first_published) + trac2md.WikiToMD(row.text, slug)
+ md = markdown_header(row, first_published) + wiki_to_markdown(row.text, slug)
with open("pelican/content/{}.md".format(slug), "w") as f:
f.write(md)