Skip to content

Commit

Permalink
Merge pull request #4545 from SanderLeenders/develop
Browse files Browse the repository at this point in the history
Added CSS.escape to font-family.ts
  • Loading branch information
janthurau authored Nov 18, 2023
2 parents 95490b9 + d7f1476 commit 8358a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-font-family/src/font-family.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const FontFamily = Extension.create<FontFamilyOptions>({
}

return {
style: `font-family: ${attributes.fontFamily}`,
style: `font-family: ${attributes.fontFamily.split(',').map((fontFamily: string) => CSS.escape(fontFamily.trim())).join(', ')}`,
}
},
},
Expand Down

0 comments on commit 8358a2b

Please sign in to comment.