Skip to content

white space after md magic-move backticks causes error #2357

@harrybin

Description

@harrybin

when there is a space char after the four backticks of md magic-move and that is not the end of the slide you get wired "code" rendered:

Image

Removing the space char fixes the issue:

Image

slide content for reproduction:

    ---
    
    # magic-move issue repro
    
    ````md magic-move
    ```tsx
    import { useState } from 'react';
    ```
    
    ```tsx
    import { useState } from 'react';
    import router from 'next/router';
    ```
    ```` 
    
    any further content
    
    <!-- 
    some speaker node
    -->
    

Environment

  • Slidev version: 52.8.0 (latest)
  • Browser: Chrome latest
  • OS: Windows

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions