Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers in tags are displayed twice #2041

Closed
atruskot opened this issue Jun 2, 2022 · 2 comments
Closed

Headers in tags are displayed twice #2041

atruskot opened this issue Jun 2, 2022 · 2 comments

Comments

@atruskot
Copy link

atruskot commented Jun 2, 2022

Describe the bug
This issue is a duplicate of issue 1150 which was closed as fixed. The description of a tag renders incorrectly. Headers are duplicated. Only the first header is used as an anchor for the sidebar.

This issue isn't present in redoc-cli@0.13.3 but is present in redoc-cli@0.13.5 and later.

Expected behavior
See the screenshot from 0.13.3.

Minimal reproducible OpenAPI snippet(if possible)
A snippet I used for the screenshots:

openapi: 3.1.0
servers:
  - url: http://server.com
    description: the server
info:
  title: Issue
  version: 1.0.0
  description: minimum spec
tags: 
  - name: Example
    description: >-
      This section describes things.
    
    
      ## A 
    
      A text.
    
    
      <SchemaDefinition schemaRef="#/components/schemas/model"/>
    
    
      ## B 
    
      B text.
    
    
      <SchemaDefinition schemaRef="#/components/schemas/model"/>
    
    
      ## C 
    
      C text.
    

      <SchemaDefinition schemaRef="#/components/schemas/model"/> 
components:
  schemas:
    model:
      type: object
      properties:
        value:
          type: string
          description: a value
          pattern: >-
            [ \r\n\t\S]+

Screenshots
redoc-cli@0.13.3 (Works as expected)
image

redoc-cli@0.13.5 (Duplicated headers)
image

@nickdnk
Copy link

nickdnk commented Jul 2, 2022

Just ran into this as well. Any news here?

@AlexVarchuk
Copy link
Collaborator

already fixed here #2119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants