Pdoc builds the docs correctly when curly braces {} are used.
The problem is with docusaurus using the MDX compiler for .md files generated by pdoc while building the website.
In MDX, curly braces are reserved for expressions so in our case the MDX compiler is looking for a fruit variable which is, obviously, not defined - @on('#foo/{fruit}'). We can fix this by writing an expression inside the curly braces which returns what we want, in our case {"{fruit}"}.
Pdoc builds the docs correctly when curly braces
{}
are used. The problem is with docusaurus using the MDX compiler for.md
files generated by pdoc while building the website. In MDX, curly braces are reserved for expressions so in our case the MDX compiler is looking for afruit
variable which is, obviously, not defined -@on('#foo/{fruit}')
. We can fix this by writing an expression inside the curly braces which returns what we want, in our case{"{fruit}"}
.Closes #1880