Skip to content

Commit

Permalink
Fix: Bug where the line height style of the format tag disappears #1394
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Apr 25, 2024
1 parent 7d01435 commit 15167a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
_cleanStyleRegExp: {
div: new _w.RegExp('\\s*[^-a-zA-Z](.+)\\s*:[^;]+(?!;)*', 'ig'),
span: new _w.RegExp('\\s*[^-a-zA-Z](font-family|font-size|color|background-color)\\s*:[^;]+(?!;)*', 'ig'),
format: new _w.RegExp('\\s*[^-a-zA-Z](text-align|margin-left|margin-right|width|height)\\s*:[^;]+(?!;)*', 'ig'),
format: new _w.RegExp('\\s*[^-a-zA-Z](text-align|margin-left|margin-right|width|height|line-height)\\s*:[^;]+(?!;)*', 'ig'),
fontSizeUnit: new _w.RegExp('\\d+' + options.fontSizeUnit + '$', 'i'),
},

Expand Down

0 comments on commit 15167a1

Please sign in to comment.