Skip to content

Commit 1e9a4a1

Browse files
committed
Wrong hook method
1 parent c3011b2 commit 1e9a4a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ This textformatter was primarly created to ease the addition of footnotes within
1717
To create a footnote reference, add a caret and an identifier inside brackets ([^1]). Then add the footnote in its own line using another caret and number inside brackets with a colon and text ([^1]: My footnote.). It will be put automatically inside the footnotes block at the end of the text.
1818

1919
### Notes
20-
- the identifier has to be a number but it is permissive in that you can put in the wrong order, it will be numbered back sequentially
21-
- there is no support for indentation, though since `<br>` tags are supported you should be fine
20+
- the identifier has to be a number but it is permissive in that you can put in the wrong order and it will be numbered back sequentially
21+
- there is no support for indentation, though since `<br>` tags are allowed you should be fine
2222
- if a footnote has no corresponding reference, it will be ignored and left as is
2323

2424
## Options
@@ -30,7 +30,7 @@ In the module settings, you can change the icon (string) used as the backreferen
3030
If you want to have a more granular control over the footnotes (e.g. per field), you can use this hook:
3131

3232
```php
33-
$wire->addHookBefore("Textformatter::addFootnotes", function(HookEvent $event) {
33+
$wire->addHookBefore("TextformatterFootnotes::addFootnotes", function(HookEvent $event) {
3434
$str = $event->arguments(0);
3535
$options = $event->arguments(1);
3636
$field = $event->arguments(2);

0 commit comments

Comments
 (0)