Skip to content

frontmatter is targeted #336

Closed
Closed
@chenxsan

Description

@chenxsan

Subject of the issue

Say I have a MDX file with this frontmatter:

---
title: Code Splitting
related:
  - title: <link rel="prefetch/preload" > in webpack
    url: https://medium.com/webpack/link-rel-prefetch-preload-in-webpack-51a52358f84c
---

Note that the <link > was not closed.

Now eslint would report Parsing error: Expected corresponding JSX closing tag for <link>. Which seems wrong to me. A related comment is here webpack/webpack.js.org#5312 (comment).

Your environment

  • OS:
  • Packages:
  • Env:

Steps to reproduce

  1. clone https://github.com/webpack/webpack.js.org
  2. open src/content/guides/code-splitting.mdx and replace the /> with > in the related part of frontmatter.

FYI, I've tried the latest version #334 (comment) with no luck.

Expected behaviour

No error.

Actual behaviour

An error was shown because frontmatter is targetted.

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