-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
65 lines (53 loc) · 1.19 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
whitelist: [
// Utility Classes
'has-background',
'has-background-gradient',
'has-drop-cap',
'wp-has-aspect-ratio',
'is-resized',
'is-cropped',
'no-border-radius',
'has-parallax',
'is-grid',
'has-dates',
'is-stacked-on-mobile',
'is-image-fill',
'has-avatars',
// core/cover
'wp-block-cover__gradient-background',
'wp-block-cover__inner-container',
// core/gallery
'blocks-gallery-grid',
'blocks-gallery-item',
// core/calendar
'wp-calendar',
'wp-calendar-table',
'wp-calendar-nav',
// core/embed
'wp-embed-responsive',
'wp-has-aspect-ratio'
],
whitelistPatterns: [
// Default Block Classes
/^wp-block(-.*)?$/,
// Utility Classes
/^is-style(-.*)?$/,
/^has-(.*)?-color$/,
/^has-(.*)?-background$/,
/^has-text-align-(left|right|center|justify)$/,
/^align(left|right|center|wide|full)$/,
/^has-(.*)?-font-size$/,
/^(is|are)-vertically-aligned-(top|center|bottom)$/,
// core/cover
/^has-background-dim-\d+$/,
// core/gallery
/^columns-(\d+)$/,
// core/media-text
/^has-media-on-the-(left|right)$/,
// core/embed
/^wp-embed-aspect-(\d+-\d+)?$/,
// core/social-links
/^wp-social-link(-.*)?$/
]
};