File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 55from os import listdir
66from os .path import isfile , join , isdir
77
8-
8+ # Parsing command line args
99parser = argparse .ArgumentParser (
1010 description = 'Convert your markdown to presentation' )
1111
2424 except :
2525 print ('Please check if config file exist or it is a json' )
2626
27-
27+ # Read all files in the directory
2828if args .dir :
2929 if isdir (args .dir [0 ]):
3030 file_names = [file for file in listdir (
3131 args .dir [0 ]) if isfile (join (args .dir [0 ], file ))]
32- print (file_names )
3332
3433 all_file_content = ""
3534 html = """
4948 all_file_content = '<section data-markdown><textarea data-template>' + \
5049 data + '</textarea></section>'
5150
52-
5351 html += all_file_content
5452
5553 html += """</div>
6159 </body>
6260 </html>
6361 """
64- # print(html)
6562
66- html_file = open ('output.html' ,'w' )
63+ html_file = open ('output.html' , 'w' )
6764 html_file .write (html )
6865 html_file .close ()
6966 else :
You can’t perform that action at this time.
0 commit comments