Can't reuse Markdownify object
Status: Beta
Brought to you by:
milianw
I have noticed that there are issues when I try to reuse the same object:
<?php
require_once 'markdownify.php';
$md = new Markdownify;
$first = $md->parseString($firstHtml);
$second = $md->parseString($secondHtml); //sometimes this does not work
unset($md);
$md = new Markdownify;
$second = $md->parseString($secondHtml); //this always works
Either the documentation needs to be updated so that it mentions that you cannot reuse the same object, or the object needs to be updated so that it can be reused. It's probably holding on to some class members instead of unsetting them when the function has finished.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"