PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/autop/index.js +5 -2 23.6.0 → trunk View file →
@@ -1,4 +1,5 @@
1 +(function() {
1 2 "use strict";
2 3 var wp;
3 4 (wp ||= {}).autop = (() => {
4 5 var __defProp = Object.defineProperty;
@@ -152,10 +153,10 @@
152 153 "$1"
153 154 );
154 155 if (br) {
155 156 text = text.replace(
156 - /<(script|style).*?<\/\\1>/g,
157 - (match) => match[0].replace(/\n/g, "<WPPreserveNewline />")
157 + /<(script|style|svg|math)[\s\S]*?<\/\1>/g,
158 + (match) => match.replace(/\n/g, "<WPPreserveNewline />")
158 159 );
159 160 text = text.replace(/<br>|<br\/>/g, "<br />");
160 161 text = text.replace(
161 162 /(<br \/>)?\s*\n/g,
@@ -278,6 +279,8 @@
278 279 }
279 280 return html;
280 281 }
281 282 return __toCommonJS(index_exports);
283 +})();
284 +(window.wp ||= {}).autop = wp.autop;
282 285 })();
283 286 //# sourceMappingURL=index.js.map