filp / whoops

PHP errors for cool kids
http://filp.github.io/whoops/
MIT License
13.19k stars 604 forks source link

fix(highlight): #747 Add line offset to highlight line #756

Closed bart-jaskulski closed 1 year ago

bart-jaskulski commented 1 year ago

PrismJS sort of broken backward compatibility, while trying to improve highlight resilience^1. Since then it is required to add data-line-offset for any code, which doesn't start counting from 1, which is pretty each time, we deal with stack frames.

This commits add silently required data attribute in HTML, bringing back highlight feature and recovering from some fall through errors, raised by TypeError in JS execution flow (i.e. switching application and full frames tabs).

bart-jaskulski commented 1 year ago

Actually, offset attribute has started to be required since this commit: https://github.com/PrismJS/prism/commit/098e30008eefc45874f5a32b4ce7141534060890

denis-sokolov commented 1 year ago

Thank you!

denis-sokolov commented 1 year ago

Released in 2.15.2!