| @@ -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, |
| @@ -279,6 +280,7 @@ | ||
| 279 | 280 | return html; |
| 280 | 281 | } |
| 281 | 282 | return __toCommonJS(index_exports); |
| 282 | 283 | })(); |
| 283 | -if(wp.autop&&typeof wp.autop==='object'){wp.autop=Object.assign({},wp.autop);} | |
| 284 | +(window.wp ||= {}).autop = wp.autop; | |
| 285 | +})(); | |
| 284 | 286 | //# sourceMappingURL=index.js.map |