We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3056f19 commit 6ce744aCopy full SHA for 6ce744a
src/utils/htmlToJsx.ts
@@ -15,7 +15,7 @@ function transformToReactJSX(jsx: string) {
15
export function HtmlToJSX(html: string, reactJSX = false) {
16
const jsx = html.replace(/([\w-]+)=/g, (i) => {
17
const words = i.split('-')
18
- if (words.length === 1)
+ if (words.length === 1 || words[0] === 'stroke')
19
return i
20
return words
21
.map((i, idx) =>
0 commit comments