slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Some ANSI escape sequences break the slide deck

Open alokmenghrajani opened this issue 11 months ago • 1 comments

Describe the bug

Some code snippets cause the slide deck to break. The frontend is stuck trying to load slides forever. The backend is probably in some kind of crashed or stuck state.

Minimal reproduction

  • Create a file, demo.out: echo "G1szNG1uaWNlIGNvbG9ycxtbMG0gChtbPzFoGz0K" | base64 -d > demo.out
  • Create a file demo.md with the following content:
---
layout: center
---

# This set of slides is buggy...

---

# Because of this

<<< blah.out ansi

---

# this slide won't load

I'll find something to put here...

Trying to load these slides fails for me.

Environment

  • Slidev version: 51.1.0
  • Browser: Chrome 133.0.6943.53
  • OS: Linux alpine3.20

alokmenghrajani avatar Feb 09 '25 00:02 alokmenghrajani

I tried the reproduction, and the slides ran without reporting any errors. But it shows up kind of buggy:

Image

kermanx avatar Feb 21 '25 14:02 kermanx