MartinPacker / md2pptx

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

Optionally Save Converted Graphics As Files #107

Closed MartinPacker closed 2 years ago

MartinPacker commented 2 years ago

SVG, for example, is converted to .PNG using CairoSVG. EPS would - if supported - be converted to .PNG also.

For other Markdown processors the .PNG might be useful. For example mdpre might switch the file extension - based on a variable setting.

So the idea is to optionally save the generated .PNG files with the same filename but .PNG as the extension.

MartinPacker commented 2 years ago

See also Issue 106.

MartinPacker commented 2 years ago

Only going to do this for disk-based files, not web-sourced. Prototype works with SVG and requires metadata exportSVG: yes.

MartinPacker commented 2 years ago

Coded, tested, documented. Will be in the next release.

MartinPacker commented 2 years ago

Actually works with web-based graphics, too. Enabling syntax is exportGraphics: yes because of EPS support Issue 106.

MartinPacker commented 2 years ago

Released in v2.5.