Skip to content

Commit

Permalink
Added CSS.escape to font-family.ts per font-family name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander committed Nov 17, 2023
1 parent 51eb628 commit d7f1476
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: ${CSS.escape(attributes.fontFamily)}`,
style: `font-family: ${attributes.fontFamily.split(',').map((fontFamily: string) => CSS.escape(fontFamily.trim())).join(', ')}`,
}
},
},
Expand Down

0 comments on commit d7f1476

Please sign in to comment.