Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/underline-emphasis/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const fixedStyle: React.CSSProperties = {

export const UnderlineEmphasis: React.FunctionComponent<{
children?: string;
}> = ({ children }) => {
style?: React.CSSProperties;
}> = ({ children, style = {} }) => {
if (typeof window === 'undefined' || !children || !children.length) {
return null;
}
Expand Down Expand Up @@ -79,6 +80,7 @@ export const UnderlineEmphasis: React.FunctionComponent<{
style={{
...fixedStyle,
backgroundImage: "url('data:image/svg+xml;base64," + encodedSvg + "')",
...style,
}}
>
{children}
Expand Down