marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.95k stars 109 forks source link

Fragmented list don’t export animations in PowerPoint #141

Open reparke opened 5 years ago

reparke commented 5 years ago

(I posted this in Marp VSCode but was told it belonged here instead)

When I used the Fragmented unordered list and export to PPTX, the "fragmented" / animation part doesn't work--that is, all the items appear at once. The fragmented effect works fine in HTML, but not in PPTX Markdown example:

Title
* item 1
* item 2

My system OS: Windows 10 Pro version 1803 (build 17134.885) VSCode: 1.37.1 Marp extension: 0.9.0

yhatt commented 5 years ago

Thank you for your helping to translate the issue from marp-team/marp-vscode#66 to marp-cli.

We have two approaches to realize:

And we have to support rendering images of all animation frames by fragmented list in either case.

djmcgreal-cc commented 3 years ago

There's a broader set of issues with the PowerPoint generation than just fragment list animations, for example clickable links. Are there other potential libraries in this space that might generate more dynamic powerpoint content?

yhatt commented 3 years ago

@djmcgreal-cc Actually PptxGenJS is well-maintained and full-featured library for Node.js. However, we are not using features for dynamic contents (including hyperlink) because reproducing the power of expression about HTML/CSS through them is unreasonably hard. e.g. HTML to PowerPoint by PptxGenJS is focusing only to the table.

Marp is focusing to visual reproducibility of generated HTML slide than interactivity of the slide (clickable link, media, animation, etc). Thus, we take an approach to take a picture of slide and set it as the background image. This approach is actually same as GitPitch (shutted down). If you want more interactivity, just using HTML slide is the best.

Another solution to make PPTX with hyperlink and editability from Marp Markdown is already explained in https://github.com/marp-team/marp/discussions/82.

djmcgreal-cc commented 3 years ago

Thank you yhatt.

We can present using the web version but must distribute via PowerPoint. As such, links are important - so it's good to know that the PDF to PPT route exists. In this case it needs to be automated in a CI process. Could you recommend a good command line tool that's somewhat the equivalent of https://www.adobe.com/uk/acrobat/online/pdf-to-ppt.html?

yhatt commented 3 years ago

No. As already described in marp-team/marp#82, I have never seen FLOSS CLI tool for converting PDF to PPTX. Even if exists, it would take the same approach as Marp.

In addition, there is really few choice even in the commercial product: Adobe community has answered simply "No" for command line solution of PDF -> PPTX via Adobe Acrobat. As far as I saw, any alternative products (Solid Converter, Smallpdf desktop, Foxit PDF editor, Nitro PDF, etc...) also have not the command line interface.

junichiyamasaki commented 2 years ago

Hi, I am a beginner of marp, and I have a similar issue for fragmented lists. Animation does not work even in HTML or PDF. The sample code is essentially the same with the above:

---
marp: true
---
* test
* test2

My system is

Or, do we need any additional setting to enable fragmented lists?

yhatt commented 2 years ago

@junichiyamasaki This issue is for discussion about fragmented list in PPTX conversion in Marp CLI.

If not worked in HTML, please start a new discussion in https://github.com/marp-team/marp/discussions, or open a new issue to a corresponding repository (marp-vscode) with filling bug form.

junichiyamasaki commented 2 years ago

@yhatt Thank you for the guidance. I have just reported from the marp-vscode bug form.