add pdf command line option
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user