@emailens/engine 0.11.6 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +127 -127
package/dist/index.cjs
CHANGED
|
@@ -9887,8 +9887,10 @@ function arcsizeToRadius(arcsize, width, height) {
|
|
|
9887
9887
|
if (!Number.isFinite(pct)) return 0;
|
|
9888
9888
|
return Math.min(100, Math.max(0, pct)) / 100 * (Math.min(width, height) / 2);
|
|
9889
9889
|
}
|
|
9890
|
+
var DOWNLEVEL_REVEALED = /<!--\[if[^\]]*!\s*(?:mso|vml)[^\]]*\]>\s*<!--(?:>|\s*-->)([\s\S]*?)<!--\s*<!\[endif\]-->/gi;
|
|
9891
|
+
var DOWNLEVEL_HIDDEN = /<!--\[if(?![^\]]*!)[^\]]*(?:mso|vml)[^\]]*\]>([\s\S]*?)<!\[endif\]-->/gi;
|
|
9890
9892
|
function resolveMsoBranch(html) {
|
|
9891
|
-
return html.replace(
|
|
9893
|
+
return html.replace(DOWNLEVEL_REVEALED, "").replace(DOWNLEVEL_HIDDEN, "$1");
|
|
9892
9894
|
}
|
|
9893
9895
|
function vmlToCss(html) {
|
|
9894
9896
|
let out = html;
|