1
0
Fork 0

Revert "chore: Linting for markdown and js"

This reverts commit 1c92e0f655.
This commit is contained in:
joostdecock 2021-10-17 18:26:00 +02:00
parent 994874fa72
commit cba1ab19c8
6627 changed files with 25791 additions and 24211 deletions

View file

@ -1,8 +1,8 @@
***
---
title: Pattern.on()
---
## title: Pattern.on()
A pattern's `on()` method allows you to attach a function to one of the
A pattern's `on()` method allows you to attach a function to one of the
pattern's [lifecycle hooks](/reference/hooks/). It takes the
lifecycle hook's name as the first argument and the function as the second.
This method will then be triggered by the lifecycle hook.
@ -13,7 +13,7 @@ This method will then be triggered by the lifecycle hook.
```js
Pattern pattern.on(string hook, function method)
```
```
<Tip>
@ -38,3 +38,4 @@ Your pattern now has a yellow background.
The [plugin guide](/guides/plugins/) contains more info on how you can use hooks
</Tip>