markdown-it-code-copy icon indicating copy to clipboard operation
markdown-it-code-copy copied to clipboard

Resolve the issue of repeated triggering of events

Open zenoda opened this issue 9 months ago • 0 comments

When markdown-it-code-copy is applied to multiple components on the same page, clicking the copy button on any code block will repeatedly trigger success or error events. This PR avoids this issue by adding a unique identifier. Please review.

zenoda avatar Apr 09 '25 08:04 zenoda