validateDOMNesting error when displaying a URL generated by compodocs #14176
Comments
|
@shilman I'd like to give this one a shot, I'll try fixing it! |
|
I was able to reproduce using the https://github.com/chromaui/intro-storybook-angular-template template and adding links in JSDoc as described, I'll keep researching to find the root cause |
|
After some debugging, the issue seems to be in the I was playing with this library in their playground, if you input this text there:
And inspect the DOM, it will have an extra anchor tag wrapping the one that's already present. Now I'll check if it's the usage of the library (some option we can use to fix?) or if it's an implementation detail on their side. |
|
FYI, I've got a PR for that library to fix #14116 |
|
@dexster great |
|
@dexster @shilman I opened a PR to |
Bug
In an Angular project Storybook is displaying this console error for a link generated by Compodocs
Steps to reproduce
Add JSDocs to an
@Inputin an angular componentor
Then run storybook to generate the docs and start the site
Compodocs generates this in documentation.json
<p>This is a test\n<a href=\"https://example.com\">https://example.com</a></p>and then Storybook wraps this in another pair of
<a>tagsPlease specify which version of Storybook and optionally any affected addons that you're running
The text was updated successfully, but these errors were encountered: