@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.js
CHANGED
|
@@ -9768,8 +9768,10 @@ function arcsizeToRadius(arcsize, width, height) {
|
|
|
9768
9768
|
if (!Number.isFinite(pct)) return 0;
|
|
9769
9769
|
return Math.min(100, Math.max(0, pct)) / 100 * (Math.min(width, height) / 2);
|
|
9770
9770
|
}
|
|
9771
|
+
var DOWNLEVEL_REVEALED = /<!--\[if[^\]]*!\s*(?:mso|vml)[^\]]*\]>\s*<!--(?:>|\s*-->)([\s\S]*?)<!--\s*<!\[endif\]-->/gi;
|
|
9772
|
+
var DOWNLEVEL_HIDDEN = /<!--\[if(?![^\]]*!)[^\]]*(?:mso|vml)[^\]]*\]>([\s\S]*?)<!\[endif\]-->/gi;
|
|
9771
9773
|
function resolveMsoBranch(html) {
|
|
9772
|
-
return html.replace(
|
|
9774
|
+
return html.replace(DOWNLEVEL_REVEALED, "").replace(DOWNLEVEL_HIDDEN, "$1");
|
|
9773
9775
|
}
|
|
9774
9776
|
function vmlToCss(html) {
|
|
9775
9777
|
let out = html;
|