Skip to content

Commit

Permalink
doc: update github markdown alert syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Nov 16, 2023
1 parent 4885149 commit fa31c15
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ even full service objects available in your twig templates.
composer require zenstruck/twig-service-bundle
```

> **Note**: If not added automatically by `symfony/flex`, enable `ZenstruckTwigServiceBundle`.
> [!NOTE]
> If not added automatically by `symfony/flex`, enable `ZenstruckTwigServiceBundle`.
## Usage

> **Note**: the output for the following functions/filters will be escaped. If your
> [!NOTE]
> the output for the following functions/filters will be escaped. If your
> function\filter returns html that you don't want escaped, use the `|raw` filter.
### Service Methods as Functions/Filters
Expand Down Expand Up @@ -150,7 +152,8 @@ zenstruck_twig_service:
Mark any service you'd like to make available in twig templates with the `#[AsTwigService]`.

> **Note**: While you can mark any service as a _twig service_, it is not recommended to mark services
> [!NOTE]
> While you can mark any service as a _twig service_, it is not recommended to mark services
> that have nothing to do with templating (ie repositories) as such. You can think of twig
> services as _lightweight-lazy-twig-extension-functions_ whose purpose is to break up/simplify
> large custom twig extensions.
Expand Down Expand Up @@ -247,7 +250,8 @@ twig function:
Use this command to list all functions/filters/services configured
by this bundle and available in your twig templates.

> **Note**: This command is only available when `debug: true`.
> [!NOTE]
> This command is only available when `debug: true`.

```
bin/console zenstruck:twig-service:list
Expand Down

0 comments on commit fa31c15

Please sign in to comment.