MartinPacker / md2pptx

Markdown To PowerPoint converter
MIT License
206 stars 31 forks source link

how to integrate by code #144

Closed shaojun closed 9 months ago

shaojun commented 10 months ago

Thanks for the great work, any guidiance for integrate the feature via python code?

MartinPacker commented 10 months ago

Hi @shaojun ! Thanks for your kind words. What do you mean by "integrate the feature via python code"?

shaojun commented 10 months ago

I developed a Python application that want to call your function in code(by import your library as a module) rather than command line. just like:

import md2pptx
md2pptx.convert('mymarkdown.md', 'target.pptx')
MartinPacker commented 9 months ago

I think you can use a Python command to run a command line invocation. Might be something like sys.exec. You can probably redirect input and output also.

Closing for now but feel free to reopen.