diff options
| -rwxr-xr-x | panfry/document.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/panfry/document.py b/panfry/document.py index d95d447..2b1cf01 100755 --- a/panfry/document.py +++ b/panfry/document.py @@ -218,6 +218,7 @@ class Document: def publish_html(self, pub_path): pandoc.set_cwd(None) + for page in self.pages: print("generating %s..." % page.htmlfile) template_file = NamedTemporaryFile(mode='w', @@ -231,10 +232,12 @@ class Document: doc.add_argument('template=%s' % template_file.name) doc.add_argument('css=%s' % self.css_file) for option in self.pandoc_options: + if option == 'number-sections': + continue doc.add_argument(option) doc.markdown = '%s\n%s' % (self.header.source, self.expand_int_links(page.markdown)) - content = doc.html + content = doc.html5 write_file(os.path.join(pub_path, page.htmlfile), unicode(content, 'utf-8')) |
