redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Strange rendering of Markdown when headers has similar text

Open Justinas-Jurciukonis opened this issue 1 year ago • 1 comments

Describe the bug For some reason when H2 header repeats with similar text, Redoc Standalone JS parses Markdown and adds content to next section.

Please note that if I change first header from Fiskaly ES to Fiskaler ES, than everything is working fine.

*Minimal reproducible OpenAPI snippet

This is the OpenAPI content (partial):

    "info": {
        "version": "local",
        "title": "Our API Documentation",
        "description": "\n# Integrations\n\n## Fiskaly ES  \nSome Description  \n## Fiskaly  \nSome Description  \n## Oracle Netsuite  \nSome Description  "
    },

Screenshots Screenshot 2024-02-15 at 10 53 43 Screenshot 2024-02-15 at 11 05 31 Screenshot 2024-02-15 at 11 01 45

Justinas-Jurciukonis avatar Feb 15 '24 09:02 Justinas-Jurciukonis

I won't encounter this problem when generating API documents using Apidog, maybe you can give it a try.

satokenta940 avatar May 08 '24 06:05 satokenta940