Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add copy button for Shiki Magic Move code block#2289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
antfu merged 2 commits intoslidevjs:mainfromelecmonkey:main
Sep 25, 2025

Conversation

@elecmonkey
Copy link
Contributor

Added copy button support for Shiki Magic Move code block.

Add new configuration for slides -magicMoveCopy:

  • false: Disable copy button
  • 'final': Show copy button only on the final step
  • true/'always': Show copy button on all steps (default)

Copy button in magic move code block respects the globalcodeCopy setting (ifcodeCopy is disabled, the magic move copy button will always be hidden) and it copies the current step's code content.

Hope this helps!

Closes#2255

@netlify
Copy link

netlifybot commentedSep 24, 2025
edited
Loading

Deploy Preview forslidev ready!

NameLink
🔨 Latest commit3df6044
🔍 Latest deploy loghttps://app.netlify.com/projects/slidev/deploys/68d4919084e7920007360807
😎 Deploy Previewhttps://deploy-preview-2289--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify project configuration.

@pkg-pr-new
Copy link

Open in StackBlitz

@slidev/client

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/client@2289

create-slidev

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev@2289

create-slidev-theme

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev-theme@2289

@slidev/parser

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/parser@2289

@slidev/cli

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/cli@2289

@slidev/types

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/types@2289

commit:1eca0e7

@antfuantfu merged commite59e631 intoslidevjs:mainSep 25, 2025
6 of 7 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@antfuantfuantfu approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Show copy button when using shiki magic move

2 participants

@elecmonkey@antfu

[8]ページ先頭

©2009-2025 Movatter.jp