Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import code snippet with no explicit language breaks subsequent content #2087

Open
kraenhansen opened this issue Feb 24, 2025 · 0 comments
Open

Comments

@kraenhansen
Copy link

Describe the bug

Content cannot proceed the import code snippet if no language is specified.

Minimal reproduction

https://stackblitz.com/edit/github-vvz8b5ao?file=slides.md

Steps to reproduce the behavior:

  1. Create file named file-a.js with a single line // Hello from File A
  2. Make a simple slide using the import code snippet syntax (without specifying a language) and observe how the render breaks:
# Hi from Test

<<< @/file-a.js

```bash
# Testing
```

Image

Note how the bug goes away if you specific a language when importing:

<<< @/file-a.js js

Environment

  • Slidev version: v51.3.0
  • Browser: N/A
  • OS: N/A

I see this locally and on Stackblitz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant