Side navbar (TOC) doesn't display content in escaped angle brackets #2021
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
help wanted
Asking for outside help and/or contributions to this particular issue or PR.
status: needs triage
This issue has not been triaged by maintainers
🐛 Bug Report
TOC generated in side navbar doesn't honor escaping of angular brackets. Instead all content within angular brackets gets stripped.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Add
### function1 [array\<string>]
ash3
in a markdown file (note the backslash)Expected behavior
Both AUTOGENERATED_TABLE_OF_CONTENTS, and side navbar render it correctly as
function1 [array<string>]
Actual Behavior
AUTOGENERATED_TABLE_OF_CONTENTS renders it correctly as
function1 [array<string>]
but side navbar renders it asfunction1 [array]
instead. Side navbar generation doesn'tReproducible Demo
patch-1
yarn && yarn start
The corresponding markdown is generated differently for AUTOGENERATED_TABLE_OF_CONTENTS and sidebar. Angle brackets are missing in generated side navbar contents.
The text was updated successfully, but these errors were encountered: