Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP 8.2 Deprecation Warning #176

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

taufik-nurrohman
Copy link

@taufik-nurrohman taufik-nurrohman commented Dec 30, 2022

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
Copy link

Remich commented Mar 10, 2023

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
Copy link
Author

taufik-nurrohman commented Mar 10, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants