Skip to content

Commit

Permalink
Merge pull request #1335 from JFox23/issue_1334
Browse files Browse the repository at this point in the history
Keep percentage width on images
  • Loading branch information
JiHong88 authored Nov 29, 2023
2 parents 4da7cf3 + 091c84e commit 8443bbb
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 @@ -475,7 +475,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
*/
_cleanStyleRegExp: {
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)\\s*:[^;]+(?!;)*', 'ig'),
format: new _w.RegExp('\\s*[^-a-zA-Z](text-align|margin-left|margin-right|width)\\s*:[^;]+(?!;)*', 'ig'),
fontSizeUnit: new _w.RegExp('\\d+' + options.fontSizeUnit + '$', 'i'),
},

Expand Down

0 comments on commit 8443bbb

Please sign in to comment.