Skip to content

Commit 112fe7f

Browse files
authored
Merge pull request #36 from paradoxxxzero/patch-1
Strip extraneous quotes on font-family
2 parents c14e5ef + c9fbbce commit 112fe7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/processInlineTag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function processInlineTag(
2424
const color = htmlElement.style.color;
2525
const backgroundColor = htmlElement.style.backgroundColor;
2626
const fontSize = htmlElement.style.fontSize;
27-
const fontFamily = htmlElement.style.fontFamily;
27+
const fontFamily = htmlElement.style.fontFamily.replace(/^"|"$/g, '');
2828
if (color) {
2929
style.add(`color-${color.replace(/ /g, '')}`);
3030
}

0 commit comments

Comments
 (0)