add pdf command line option

This commit is contained in:
dechert
2021-06-15 17:32:40 +02:00
parent 11387d34cc
commit e8be969e98
3 changed files with 10 additions and 1 deletions

View File

@@ -21,6 +21,12 @@ class QuestionAndAnswers:
return "QuestionAndAnswers: Question: {}, Answers: {}, Category: {}".format(self.question, self.answerArray, self.category)
def convert(csv_path, output_pdf=False):
write_markdown_file(csv_path)
if(output_pdf):
to_pdf("slide-deck.md")
def write_markdown_file(csv_path):
# csv_path = "quiz-example.csv"
markdown_path = "slide-deck.md"