Open Ugzuzg opened 2 months ago
Hi @Ugzuzg, thanks for reporting the issue. The fix seems straightforward but can you provide steps to reproduce so I can be certain I'm addressing your issue? Are you defining these code blocks/fences in normal doc files or embedding them inside your OpenAPI spec summary/description?
@sserrata, edited the description with more details.
Describe the bug
Markdown supports initiating fenced code blocks with
~~~
, https://www.markdownguide.org/extended-syntax/#fenced-code-blocks, but it is incorrectly cleaned.Expected behavior
Current behavior
Possible solution
Modify the cleaning regexp: https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/main/packages/docusaurus-plugin-openapi-docs/src/markdown/utils.ts#L65
Steps to reproduce
~~~
to the description of a field in OpenAPI specification containing a JSON object.docusaurus gen-api-docs all
.Screenshots
Code block initiated with
~~~
:Code block initiated with
```
works as expected:Context
Your Environment