Closed gullerya closed 3 years ago
which storybook version do you use? here i have the same issue https://github.com/whitespace-se/storybook-addon-html/issues/35
cheers and +1
Mine is 6.1.1
.
Thanks for reporting this. It’s now fixed in version 4.1.0
I've just run our Storybook (6.1.1) with the new plugin versions (tried 4.1.0 and 4.2.0) - the issue is still present.
You need to set the root
parameter to "#root-inner"
for it to have any effect. You can also remove the empty comments with the removeEmptyComments
parameter. Example:
export const parameters = {
html: {
root: '#root-inner', // default: #root
removeEmptyComments: true, // default: false
},
};
This is documented in the Readme. Sorry I didn’t tell you when I closed the issue. Let me know if it still doesn’t work for you.
Perfect, sorry I've not looked myself! Thank you very much!!!
Hello, and first of all - kudos for a very helpful addon.
I'm having the issue, that the Storybook's own wrapping
div
is appearing in the compiled HTML. Probably you've already encountered this issue, so asking here just before diving into debugging.The generated HTML looks like this:
That
root-inner
thingie shouldn't be there, right? The only probably special thing that we are doing in our case is to use LitElement'shtml
template literal function to provide our story.