Skip to content

Commit 17ac70d

Browse files
authored
fixing styled html bug in tailwindText (#124)
1 parent a783b5c commit 17ac70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/tailwind/tailwindMain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const tailwindText = (node: TextNode, isJsx: boolean): string => {
127127
content = styledHtml[0].text;
128128
} else {
129129
content = styledHtml
130-
.map((style) => `<span style="${style.style}">${style.text}</span>`)
130+
.map((style) => `<span class="${style.style}">${style.text}</span>`)
131131
.join("");
132132
}
133133

0 commit comments

Comments
 (0)