Skip to content

' can be escaped with ', ‘, ', ’. #331

@chenxsan

Description

@chenxsan

Subject of the issue

Using ' in javascript code block inside mdx shows an error as the title:

<div>
```js
import foo from './foo.js'
```
</div>

Your environment

  • OS:
  • Packages:
  • Env:

Steps to reproduce

  1. Clone code from migrate md to mdx webpack/webpack.js.org#5233
  2. Run yarn to install
  3. open src/content/index.mdx, and append code below:
<div>
```js
import foo from './foo.js'
```
</div>

Expected behaviour

No lint error.

Actual behaviour

A lint error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🌊 blocked/upstreamThis cannot progress before something external happens first🐛 type/bugThis is a problem🙅 no/wontfixThis is not (enough of) an issue for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions