-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Experimental] --pptx-editable
option to convert Markdown into editable PPTX
#626
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Currently a container image does not have included LibreOffice Impress.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #166 and #298.
This PR is adding an experimental
--pptx-editable
option to convert Markdown into editable PPTX when converting with--pptx
option. The output can open in common presentation softwares with keeping reproducibility in most of slides, and can edit the text, image, and so on.We have described how to make editable PPTX from Marp Markdown in marp-team/marp#82, but this solution is depending on the commercial software (Adobe Acrobat) or non OSS solution such as PDF to PPTX web services. I had thought that there was nothing the solution for making editable PPTX by OSS, but I've found LibreOffice has a conversion feature with headless
soffice --headless
, that can use the PDF input filter and the PPTX output filter.By this implementation, we can provide completely open-source projects based solution to convert HTML-based slide into editable PPTX, without uploading a draft slide into third-party web service.
This implementation will convert Markdown into PDF first, and try converting that into PPTX with the headless LibreOffice. Thus, users have to install LibreOffice before using
--pptx-editable
option.Limitations
gaia
,uncover
built-in theme and custom themes, may break the layout or fail conversion due to that cannot load with LibreOffice.<!-- notes -->
) are not included in the output PPTX.The almost part of this conversion process is depending on upstream tools, the browser (HTML -> PDF) and LibreOffice (PDF -> PPTX), so there is no room to control intermediate outputs by Marp. So it is difficult to fix these limitations in Marp.
Due to that limitations, we are planning to ship this feature as an experimental feature.