erusev / parsedown-extra

Markdown Extra Extension for Parsedown
MIT License
817 stars 121 forks source link

Fix PHP 8.2 Deprecation Warning #176

Open taufik-nurrohman opened 1 year ago

taufik-nurrohman commented 1 year ago

Source: https://php.watch/versions/8.2/mbstring-qprint-base64-uuencode-html-entities-deprecated#html

Note: Could not use htmlentities() here because it will encode the HTML markup which we don’t want. The solution comes from a comment in the official PHP website.

Remich commented 1 year ago

This gives me:

Uncaught Error: Call to undefined method ParsedownExtra::textElements() in […]/parsedown-extra/ParsedownExtra.php:46

Also, why did you go from 0.8.0 to 0.8.2? There is already a 0.8.1 out.

taufik-nurrohman commented 1 year ago

I was editing from the master branch, not from the 0.8.x branch.

Uncaught Error: Call to undefined method ParsedownExtra::textElements()

You must be using Parsedown version 1.7 and not the beta version.

taufik-nurrohman commented 1 year ago

BTW, the release orders are weird since the 1.8 versions.

Screenshot 2023-03-10 at 22-27-11 erusev_parsedown Better Markdown Parser in PHP