Skip to content

Commit 7814b42

Browse files
Add warning for transformer order
1 parent ac20515 commit 7814b42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/transformers.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ $html = (new Phiki)
3232
->toString();
3333
```
3434

35+
<Warning>
36+
Transformers are applied in the order they are added. If you add mutliple transformers, the output from one will be passed to the next.
37+
38+
Be careful when modifying the HTML AST, especially if you are adding or removing elements, as this can break the structure expected by later transformers.
39+
</Warning>
40+
3541
## Available hooks
3642

3743
| Method | Description |

0 commit comments

Comments
 (0)