storybook-addon-html
storybook-addon-html copied to clipboard
feat: add `removeComments` parameter
The removeComments
parameter will remove all the HTML comments (if set to true
) or only the want matching a regular expression provided. Eg:
export const parameters = {
html: {
removeComments: true, // default: false
},
};
export const parameters = {
html: {
// Remove only lit HTML comments, eg: `<!--?lit$117057236$-->`
removeComments: /<!--(.lit.*?)-->/g,
},
};
This change will complement a previous PR #66 created before.
@jeanfredrik would you mind please to take a look when you have time? Thank you 🙂
Very interested in this update - will be a big improvement on our implementation for Adobe's Spectrum design system docs. If I can help in any way, please reach out!
We've added this feature in version 5.0.2. Thanks for the idea and the contributions!
We've added this feature in version 5.0.2. Thanks for the idea and the contributions!
Thank you @jeanfredrik 🙌🏻