diff options
Diffstat (limited to 'extract.py')
-rwxr-xr-x | extract.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |