You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can add custom rules to define how attributes are parsed - we use [posthtml-attrs-parser](https://github.com/posthtml/posthtml-attrs-parser) to handle them.
844
844
845
+
846
+
### Plugins
847
+
848
+
You can specify whether plugins are applied before or after the `posthtml-expressions` plugin:
849
+
850
+
```js
851
+
constoptions= {
852
+
plugins: {
853
+
before: [/* ... */],
854
+
after: [/* ... */],
855
+
}
856
+
};
857
+
```
858
+
859
+
For backwards compatibility, passing an array will default to applying plugins after the `posthtml-expressions` plugin. The following options are equivalent:
860
+
861
+
```js
862
+
constoptions= {
863
+
plugins: [/* ... */]
864
+
};
865
+
866
+
constoptions= {
867
+
plugins: {
868
+
before: [/* ... */],
869
+
after: [],
870
+
}
871
+
};
872
+
```
873
+
845
874
### Advanced attributes configurations
846
875
847
876
If default configurations for valid attributes are not right for you, you may configure them as explained below.
0 commit comments