You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pico's markdown filter doesn't throw any errors. This is a different behavior to Twig's built in filters, which are very verbose and will print errors directly on the page if used incorrectly.
I accidentally fed the markdown filter an array a couple times and it just silently failed. 🤦🏻♀️
No idea if Pico's other filters are like this or not, but it's probably worth investigating.
The text was updated successfully, but these errors were encountered:
I just added PHP strict typing, passing an array to Pico's markdown Twig filter will now cause a fatal error. Apart from that I can't really think of additional checks. Parsedown has no error handling (even though I'm not sure whether any Markdown parser has, a Markdown parser can't know whether syntax like **foo* is meant to be *foo, or whether the author missed the second *). So, shall we leave it like this, or can you think of more reasonable checks?
Sorry, I've been meaning to get back to you on these issues. I suddenly found myself kind of busy with yet another Pico related project (besides just trying to get all the themes updated).
Yeah, I wasn't necessarily looking for Markdown errors to be noted... just the fact that it could outright fail entirely without feedback seemed unintuitive. I'm probably the only person who will ever manage to feed it the wrong data type though. 😂
Mentioned in #600.
Pico's markdown filter doesn't throw any errors. This is a different behavior to Twig's built in filters, which are very verbose and will print errors directly on the page if used incorrectly.
I accidentally fed the markdown filter an array a couple times and it just silently failed. 🤦🏻♀️
No idea if Pico's other filters are like this or not, but it's probably worth investigating.
The text was updated successfully, but these errors were encountered: