mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 07:05:12 -07:00
Edited extend example to show the actual output of redcloth
@@ -40,7 +40,7 @@ end
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
@template = Liquid::Template.parse(" {{ '*hi*' | textilize }} ")
|
@template = Liquid::Template.parse(" {{ '*hi*' | textilize }} ")
|
||||||
@template.render({}, :filters => [TextFilter]) # => "<b>hi</b>"
|
@template.render({}, :filters => [TextFilter]) # => "<strong>hi</strong>"
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can register your filters globally:
|
Alternatively, you can register your filters globally:
|
||||||
|
|||||||
Reference in New Issue
Block a user