markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

Allow JSX overrides with same leading substring in component names

Open kojiwakayama opened this issue 3 years ago • 2 comments

It seems to be currently not possible to add JSX components to the overrides with the same leading substring in the component names. I created PR https://github.com/probablyup/markdown-to-jsx/pull/364 where I added a test to verify this scenario. I can see that the nestedParse function is currently not returning the expected parser result. Any help / pointer for a fix is appreciated.

kojiwakayama avatar Jan 16 '21 11:01 kojiwakayama

Anything that holds this from being solved? I've been experiencing this issue for a while. Example:

<Faq>
  <FaqItem>...</FaqItem>
</Faq>

Will not work because FaqItem has Faq as its prefix, which is also a separate component.

Dear maintainers, what's holding your from solving this?

meglio avatar Jul 24 '21 15:07 meglio

@kojiwakayama would you please update your PR to make all tests pass?

meglio avatar Jul 24 '21 15:07 meglio