Closed daybrush closed 1 year ago
Tested storybook-addon-preview@2.3.0-beta.1
I set this formater:
previewFormatter: (format, code) => {
if (format) {
return prettier.format(removeEmptyLines(code), {
parser: "html",
plugins: [
htmlParser,
],
});
}
return code;
},
where removeEmptyLine is :
removeEmptyLines = (template) => template.trim().replace(/(\r\n|\n|\r)/gm, '\n').replace(/\n\s*\n/gm, '\n');
@ryuran
Are there any problems using it?
I think I will release it like this.
Non problem using it. I tested globals with knobs and with args. It works as expected
43 #44