Spaces:
Running
Running
user commited on
Commit ·
b116d89
1
Parent(s): 7fd0cde
Bug fix
Browse files14 unmodified lines15161718192021222314 unmodified linesfile.write(markdown_text)# 定義輸出 PPTX 路徑output_pptx_path = os.path.splitext(input_path)[0] + ".pptx"# 定義輸出 PDF 路徑output_pdf_path = os.path.splitext(input_path)[0] + ".pdf"# 將 Markdown 轉換為 PPTXcommand_pptx = f"pandoc '{input_path}' -o '{output_pptx_path}'"14 unmodified lines151617181920212223242514 unmodified linesfile.write(markdown_text)# 定義輸出 PPTX 路徑# output_pptx_path = os.path.splitext(input_path)[0] + ".pptx"output_pptx_path = os.path.split(input_path)[1].replace(".md", ".pptx")# 定義輸出 PDF 路徑# output_pdf_path = os.path.splitext(input_path)[0] + ".pdf"output_pdf_path = os.path.split(input_path)[1].replace(".md", ".pdf")# 將 Markdown 轉換為 PPTXcommand_pptx = f"pandoc '{input_path}' -o '{output_pptx_path}'"
main.py+4-2