MartinPacker / md2pptx

Markdown To PowerPoint converter
MIT License
222 stars 35 forks source link

[feature] Allow specification for Notes slide #83

Closed liteman closed 3 years ago

liteman commented 3 years ago

Feature Request: Allow specification for paragraph(s) to be added to the corresponding Notes slide. Maybe with the blockquote > markdown character? One > per paragraph in notes?

MartinPacker commented 3 years ago

Well, today paragraph text buys you slide notes not note slides.

1) I'm hoping that's still working - as I haven't tested it in a while.

2) I suppose I could make it an option to create Notes slides - an option enabled via metadata. These would probably have the previous slide's title - with "Notes" appended. Also they would be bullet-free, like the Abstract slide is.

Let me know what you think. This won't get done immediately, but I'm open to ideas.

liteman commented 3 years ago

Slide notes is what I'm after actually. I must have misunderstood the reference in python-pptx.

How would I specify slide notes on a content slide?

I've tried a blank line after the bullets and I tried a paragraph tag <p></p> -- neither seemed to have any effect

MartinPacker commented 3 years ago

You don't need to to do paragraph tags; Just text after the bulleted list should work. Paragraphs should be as Markdown would have them. The idea here was that if you threw the same deck through a real Markdown processor you'd get the bullets and underneath the notes as paragraphs.

Sounds like this isn't working in md2pptx; I'll have to investigate. As I said, I haven't tested slide notes in a long time - as I haven't used them myself. Can you check if it's just the final slide's notes that don't appear? Or also previous slides' notes that don't.

And I'll keep the idea of notes slides on the back burner. I know - from the example of abstract slides how to make them appear.

MartinPacker commented 3 years ago

I can confirm slide notes is broken. Now to figure out why.

MartinPacker commented 3 years ago

So slide notes is repaired - and enhanced to translate eg &percnt; into %. Slide note creation is refactored into createSlideNotes(slide, notes_text) - which makes any future enhancements easier.

There's 1 bug before I push: For a Section or Title slide the notes also appear on the slide itself. Will pursue.

(It's actually possible I'll use slide notes in an upcoming presentation - because I'm developing the slide deck with a friend and we don't know each other's stuff all that well.)

MartinPacker commented 3 years ago

Pushed. Documentation to follow.

MartinPacker commented 3 years ago

RIght now slide notes can't contain active hyperlinks. I've opened a separate issue for this.

MartinPacker commented 3 years ago

Docs done and pushed. I'd like to fix Issue 84 and any bugs from this before releasing 2.2.1 and closing this.

MartinPacker commented 3 years ago

And Issue 84 is now fixed. So ready to ship.

MartinPacker commented 3 years ago

Fixed in v2.2.1.