Ideally, the tags would be stripped in this context, leaving only the plain text.
I'd be happy to work on this issue. I'm not quite sure how to approach it though.
One option would be to just treat the placeholder as a string placeholder.replace(/(<([^>]+)>)/gi, ""); would be enough to remove HTML tags. Maybe markdown is the lesser evil. Crude but simple.
It seems like it should be possible to use some of the existing MDX/remark tooling that this lib and docusaurus already pull in to render the content of the string into a tree structure we can traverse and then extract just the text nodes. That seems like a more robust approach, but I'm not sure that MDX exposes a suitable API for that though.
Here's a screenshot showing the issue:
Ideally, the tags would be stripped in this context, leaving only the plain text.
I'd be happy to work on this issue. I'm not quite sure how to approach it though.
One option would be to just treat the placeholder as a string
placeholder.replace(/(<([^>]+)>)/gi, "");
would be enough to remove HTML tags. Maybe markdown is the lesser evil. Crude but simple.It seems like it should be possible to use some of the existing MDX/remark tooling that this lib and docusaurus already pull in to render the content of the string into a tree structure we can traverse and then extract just the text nodes. That seems like a more robust approach, but I'm not sure that MDX exposes a suitable API for that though.