@maizzle/framework 6.0.0-2 → 6.0.0-3
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/package.json
CHANGED
|
@@ -32,21 +32,26 @@ export async function inline(html = '', options = {}) {
|
|
|
32
32
|
options.safelist = new Set([
|
|
33
33
|
...get(options, 'safelist', []),
|
|
34
34
|
...[
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
35
|
+
'body', // Gmail
|
|
36
|
+
'gmail', // Gmail
|
|
37
|
+
'apple', // Apple Mail
|
|
38
|
+
'ios', // Mail on iOS
|
|
39
|
+
'ox-', // Open-Xchange
|
|
40
|
+
'yahoo', // Yahoo! Mail
|
|
41
|
+
'outlook', // Outlook Mac and Android
|
|
41
42
|
'[data-ogs', // Outlook.com
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
43
|
+
'bloop_container', // Airmail
|
|
44
|
+
'Singleton', // Apple Mail 10
|
|
45
|
+
'unused', // Notes 8
|
|
46
|
+
'moz-text-html', // Thunderbird
|
|
47
|
+
'mail-detail-content', // Comcast, Libero webmail
|
|
48
|
+
'mail-content', // Notion
|
|
47
49
|
'edo', // Edison (all)
|
|
48
50
|
'#msgBody', // Freenet uses #msgBody
|
|
49
|
-
'
|
|
51
|
+
'lang', // Fenced code blocks
|
|
52
|
+
'ShadowHTML', // Superhuman
|
|
53
|
+
'spark', // Spark
|
|
54
|
+
'at-', // Safe class names for container queries
|
|
50
55
|
],
|
|
51
56
|
])
|
|
52
57
|
|
|
@@ -9,20 +9,24 @@ import { getPosthtmlOptions } from '../posthtml/defaultConfig.js'
|
|
|
9
9
|
const posthtmlPlugin = options => tree => {
|
|
10
10
|
const defaultSafelist = [
|
|
11
11
|
'*body*', // Gmail
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
12
|
+
'*gmail*', // Gmail
|
|
13
|
+
'*apple*', // Apple Mail
|
|
14
|
+
'*ios*', // Mail on iOS
|
|
15
|
+
'*ox-*', // Open-Xchange
|
|
16
|
+
'*outlook*', // Outlook.com
|
|
17
17
|
'[data-ogs*', // Outlook.com
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
18
|
+
'*bloop_container*', // Airmail
|
|
19
|
+
'*Singleton*', // Apple Mail 10
|
|
20
|
+
'*unused', // Notes 8
|
|
21
|
+
'*moz-text-html*', // Thunderbird
|
|
22
|
+
'*mail-detail-content*', // Comcast, Libero webmail
|
|
23
|
+
'*mail-content-*', // Notion
|
|
23
24
|
'*edo*', // Edison (all)
|
|
24
25
|
'#*', // Freenet uses #msgBody
|
|
25
|
-
'
|
|
26
|
+
'*lang*', // Fenced code blocks
|
|
27
|
+
'*ShadowHTML*', // Superhuman
|
|
28
|
+
'*spark*', // Spark
|
|
29
|
+
'*at-*', // Safe class names for container queries
|
|
26
30
|
]
|
|
27
31
|
|
|
28
32
|
const defaultOptions = {
|