[UTIL][Formatting] Fix wrong event name
This commit is contained in:
parent
8f5b404941
commit
66ff3c594d
@ -237,7 +237,7 @@ abstract class Formatting
|
||||
// Split \n\n into paragraphs, process each paragrah and merge
|
||||
return implode("\n", F\map(explode("\n\n", $text), function (string $paragraph) use ($language) {
|
||||
$paragraph = nl2br($paragraph, use_xhtml: false);
|
||||
Event::handle('onRenderPlainTextNoteContent', [&$paragraph, $language]);
|
||||
Event::handle('RenderPlainTextNoteContent', [&$paragraph, $language]);
|
||||
|
||||
return HTML::html(['p' => [$paragraph]], options: ['raw' => true, 'indent' => false]);
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user