Skip to content

Tilde (~) character inside JSX component breaks in MDX v2 #1238

@patrickarlt

Description

@patrickarlt

Subject of the issue

Tildes (~) inside MDX blocks in v2 do not parse.

Your environment

N/A can be reproduced in the v2 playground https://mdx-git-next.mdx.vercel.app/playground.

Steps to reproduce

  1. Go to https://mdx-git-next.mdx.vercel.app/playground
  2. Enter ~1 foot. parses as expected.
  3. Replace with
    <Box>
    
    ~1 foot.
    
    </Box>
    
  4. Parse error

Expected behavior

Should parse successfully.

Actual behavior

5:7: Unexpected end of file in code, expected a corresponding fence for `~`

2020-08-26_16-48-18

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions