c8r / x0

Document & develop React components without breaking a sweat

Home Page:https://compositor.io/x0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested anchor tags

peduarte opened this issue · comments

x0 is generating nested anchor tags from md to html.

you can replicate by creating a md file with a h1:

// hello.md
# Hello world

And render this

// index.js
import React from 'react';
import Hello from "./hello.md";

export default class extends React.Component {
  render() {
    return Hello />
  }
}

Also happening on https://mdxjs.com

image
image

It doesn't happen on the x0 docs site though, maybe this was introduced in a later version?

Thanks!