docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

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

Open omonk opened this issue 6 months ago • 2 comments

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

https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/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",

omonk avatar Jun 10 '25 11:06 omonk