Skip to content

Reserializing of inline links back to MDX result in improper JSX #1169

@johno

Description

@johno

Input

https://styled-components.com

AST

            {
              "type": "link",
              "title": null,
              "url": "https://styled-components.com",
              "children": [
                {
                  "type": "text",
                  "value": "https://styled-components.com",
                  "position": {
                    "start": {
                      "line": 79,
                      "column": 1,
                      "offset": 1913
                    },
                    "end": {
                      "line": 79,
                      "column": 30,
                      "offset": 1942
                    },
                    "indent": []
                  }
                }
              ],

Actual output (back in MDX form)

<https://styled-components.com/>

Expected output

https://styled-components.com

or

[https://styled-components.com](https://styled-components.com)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions