Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
simonerd committed May 8, 2024
1 parent 3d875bb commit 7adc938
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@ $renderer = (new Renderer())->withHtmlTags();

**Note:** If you choose to preserve HTML tags, the `withLinkTargets` option (see above) will be ignored.

### Custom processor

If you need to modify the content before it is passed on to the render process, you can optionally add a custom processor function:

```php
$renderer = new Renderer();
$renderer->setContent($searchable, 'bard_content');
// …

$renderer->process(function ($content) {
// modify content

return $content;
});
```

This allows you to e. g. remove certain sets or modify the content in any other way.

## More about us

- [www.visuellverstehen.de](https://visuellverstehen.de)
Expand Down

0 comments on commit 7adc938

Please sign in to comment.