Quellcode durchsuchen

todos and gitignore build

Bachir Soussi Chiadmi vor 7 Jahren
Ursprung
Commit
03ec8025cd
2 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen
  1. 2 0
      .gitignore
  2. 6 4
      classes/md2html.py

+ 2 - 0
.gitignore

@@ -1,2 +1,4 @@
 assets/scss/*.css
 classes/__pycache__
+setup.py
+build

+ 6 - 4
classes/md2html.py

@@ -75,13 +75,15 @@ class Compiler():
          pdoc_filters = []
 
          output = pypandoc.convert_file(in_f,
-                                  to='html5',
-                                  format='markdown+header_attributes+link_attributes+bracketed_spans',
-                                  extra_args=pdoc_args,
-                                  filters=pdoc_filters)
+                               to='html5',
+                               format='markdown+header_attributes+link_attributes+bracketed_spans',
+                               extra_args=pdoc_args,
+                               filters=pdoc_filters)
 
          output_dom = BeautifulSoup(output, 'html.parser')
 
+         # TODO: hyphenate paragraph
+
          # append html story page to template_dom
          story_page = BeautifulSoup(
             '<div class="story-page story-page-'+str(pi)+'" id="'+pageid+'"></div>',