Skip to content

[Feature] Copy to clipboard functionality for Code Block component #1500

Closed
@Jettonn

Description

@Jettonn

Initial checklist

  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything (or linked relevant results below)

Problem

Code Block component is really useful, but since it's created not to be extended by the user it's hard to add a copy-to-clipboard functionality to the component (although you can change the icons, buttons, etc for language selector).

Solution

It would be handy to be able to add functionalities yourself (extend the components) or just support copy to the clipboard button.

Alternatives

Let users extend milkdown components and plugins

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions