MartinPacker / md2pptx

Markdown To PowerPoint converter
MIT License
226 stars 36 forks source link

how to integrate by code #144

Closed shaojun closed 11 months ago

shaojun commented 1 year ago

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

MartinPacker commented 1 year ago

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

shaojun commented 1 year 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 11 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.