remark icon indicating copy to clipboard operation
remark copied to clipboard

id handling on accumulative slides

Open LukasAV opened this issue 6 years ago • 2 comments
trafficstars

Hi, I am having an issue where I am having elements on accumulative slides with an id. Because the content is copied to the next step of the accumulative slide, the id exists twice and I can only work with the first element with this id. Often I can get around this problem using classes, but <svg> tags use ids internally for markers which are also not displayed on accumulative slides except the first.

LukasAV avatar Sep 16 '19 20:09 LukasAV

Hi @LukasAV -- could you please send us a minimal example so I'm sure I understand correctly? Cheers,

abelards avatar Dec 17 '19 17:12 abelards

A minimal example would be to just have any tag with an id followed by a --. E.g.

<div id="banana"></div>

--

other text

This will output a series of div.remark-slide-container that each have a div#banana. Using document.getElementById('banana') will return the first, ignoring all others.

dvberkel avatar Jan 07 '20 19:01 dvberkel