parsedown-extra icon indicating copy to clipboard operation
parsedown-extra copied to clipboard

Fix PHP 8.2 Deprecation Warning

Open taufik-nurrohman opened this issue 2 years ago • 3 comments

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.

taufik-nurrohman avatar Dec 30 '22 02:12 taufik-nurrohman

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.

Remich avatar Mar 10 '23 12:03 Remich

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 avatar Mar 10 '23 15:03 taufik-nurrohman

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

taufik-nurrohman avatar Mar 10 '23 15:03 taufik-nurrohman