Skip to content

Commit f21034e

Browse files
committed
make the options optional
1 parent 3f4f198 commit f21034e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/render/src/shared/utils/pretty.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export const getIndentationOfLine = (line: string) => {
2323
return match[0];
2424
};
2525

26-
export const pretty = (html: string, options: Options) => {
26+
export const pretty = (
27+
html: string,
28+
options: Options = { lineBreak: '\n' },
29+
) => {
2730
const nodes = lenientParse(html);
2831

2932
return prettyNodes(nodes, options);

0 commit comments

Comments
 (0)