| @@ -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 |