Skip to content

Copy code blocks in markdown with a single click

When we show markdown pages in GitLab we could add this button on the right side of every " ``` " blocks. It has its own DOM identification so it should not be hard to do on frontend side.

Release Notes

Instead of selecting all the code within a block and using your keyboard to copy it to your clipboard, code blocks within markdown can now be copied with a single click.

Screen_Shot_2021-12-17_at_3.33.33_PM

Edited by Gabe Weaver