Skip to content

magicMoveCopy and codeCopy work only in the global front matter #2674

Description

@GitSparTV

Describe the bug

Configs like magicMoveCopy or codeCopy can't be set for a single slide.
The only way is to use pointer-events-none.

Minimal reproduction

Steps to reproduce the behavior:

Create regular code block:

---
title: Test
---

Slide 1

---
magicMoveCopy: false
codeCopy: false
---

```txt
Some text
```

It's still has copy button

Environment

  • Slidev version: v52.16.0
  • Browser: Chrome
  • OS: MacOS

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions