Skip to content

Commit

Permalink
Fixed using both color and highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Oct 14, 2022
1 parent c729810 commit e3781eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-highlight/src/highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Highlight = Mark.create<HighlightOptions>({

return {
'data-color': attributes.color,
style: `background-color: ${attributes.color}`,
style: `background-color: ${attributes.color}; color: inherit`,
}
},
},
Expand Down

0 comments on commit e3781eb

Please sign in to comment.