c8r / x0

Document & develop React components without breaking a sweat
https://compositor.io/x0/
MIT License
1.71k stars 65 forks source link

Nested anchor tags #112

Open peduarte opened 5 years ago

peduarte commented 5 years ago

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!

peduarte commented 5 years ago