getgrav / grav-plugin-shortcode-owl-carousel

Grav Shortcode Owl Carousel Plugin
https://getgrav.org
MIT License
11 stars 12 forks source link

1.7: Template requires |raw filter #23

Closed pamtbaau closed 3 years ago

pamtbaau commented 3 years ago

After upgrading to Grav 1.7, the output of the template is escaped and therefor broken.

Solution:

{{ owl_items|regex_replace('(^\n?<p>|<\/p>$)','') | raw }}
01Kuzma commented 3 years ago

@pamtbaau thank you that you have posted it! I've spent hours finding out the problem

mahagr commented 3 years ago

@pamtbaau Can you create a pull request on this, thanks!

pamtbaau commented 3 years ago

Submitted PR per your request: Template requires filter |raw #25

mahagr commented 3 years ago

Thanks, now we need @rhukster to do the release.

rhukster commented 3 years ago

released