BenjaminHoegh / ParsedownExtended

ParsedownExtended is an extention for Parsedown, offering additional features and functionalities.
https://benjaminhoegh.github.io/ParsedownExtended
MIT License
37 stars 7 forks source link

Fix emoji tries to match over words #37

Closed KENNYSOFT closed 2 years ago

KENNYSOFT commented 2 years ago

Description

Fix emoji tries to match over words, by restricting character range to except space.

echo $ParsedownExtended->text("* test: [link](https://google.com)");

# before: <li>test: [link](https://google.com)</li>
# after: <li>test: <a href="https://google.com/">link</a></li>

Also, I've fixed a typo and broken link in README.

Types of changes

Contributing guidelines

description: What steps have you taken to make sure your code follow the community guides? options:

Change to the documentation

description: What types of changes does your code introduce? options:

Code of Conduct

By submitting this pull request, you agree to follow our Code of Conduct