Skip to content

Tag and Api parse descriptions differently, renders <br/>Β #1159

Open
@omonk

Description

@omonk

Describe the bug

On the API page template we are seeing operation descriptions which contain <br /> rendered correctly as HTML

On the tag page, Cards which render the operation title and description render <br /> as strings

Expected behavior

Card descriptions are rendered with HTML elements parsed out

Current behavior

Card descriptions render html elements are strings

Possible solution

Steps to reproduce

main...omonk:docusaurus-openapi-docs:patch-1

  1. Add <br/> to any operation description, see link above for example
  2. Got to tag page
  3. See <br> rendered in description

Screenshots

Card
Image

Api page

Image

Your Environment

"docusaurus-plugin-openapi-docs": "4.1.0",
"docusaurus-theme-openapi-docs": "4.1.0",

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreviewing πŸ‘€Undergoing manual audit to determine if issue should still be active

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions