Letting Parsedown escape the content, instead of calling htmlspecialchars provides more context to the escape process. For example the ampersand character can now be used in markdown links as part of the url without breaking.