MartinPacker / md2pptx

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

For a presentation with two code slides second one has same code as first when it shouldn't. #85

Closed MartinPacker closed 3 years ago

MartinPacker commented 3 years ago

A presentation with two consecutive code slides has the first one's code replicated into the second code slide.

Looks at first glance like it affects when there is only one content chunk on a slide.

Going to reduce the problem to a very simple test before fixing.

MartinPacker commented 3 years ago

Looks like code blocks list is not re-initialised when moving to a new slide. So (correctly) the first code block is rendered - but it's the block that should've been cleared out when the new slide was started.

MartinPacker commented 3 years ago

Fixed in v2.2.2.