You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require"vendor/autoload.php";
$pd = newParsedownExtra();
$pd->setSafeMode(true);
$md = <<<EODWelcome to the demo of Parsedown Extra [^1]:1. Write Markdown text on the left2. Hit the __Parse__ button or `⌘ + Enter`3. See the result to on the rightThis is an interactive demo of[^1]: [Parsedown Extra](https://github.com/erusev/parsedown-extra) is an extension of [Parsedown](/) that adds support for [Markdown Extra](https://michelf.ca/projects/php-markdown/extra/).EOD;
echo$pd->text($md);
Expected Output:
<p>Welcome to the demo of Parsedown Extra <supid="fnref1:1"><ahref="#fn:1" class="footnote-ref">1</a></sup>:</p><ol><li>Write Markdown text on the left</li><li>Hit the <strong>Parse</strong> button or <code>⌘ + Enter</code></li><li>See the result to on the right</li></ol><p>This is an interactive demo of</p><divclass="footnotes"><hr/><ol><liid="fn:1"><p><ahref="https://github.com/erusev/parsedown-extra">Parsedown Extra</a> is an extension of <ahref="/">Parsedown</a> that adds support for <ahref="https://michelf.ca/projects/php-markdown/extra/">Markdown Extra</a>. <ahref="#fnref1:1" rev="footnote" class="footnote-backref">↩</a></p></li></ol></div>
Actual Output:
<p>Welcome to the demo of Parsedown Extra <supid="fnref1:1"><ahref="#fn%3A1" class="footnote-ref">1</a></sup>:</p><ol><li>Write Markdown text on the left</li><li>Hit the <strong>Parse</strong> button or <code>⌘ + Enter</code></li><li>See the result to on the right</li></ol><p>This is an interactive demo of</p><divclass="footnotes"><hr/><ol><liid="fn:1">
<p><a href="https://github.com/erusev/parsedown-extra">Parsedown Extra</a> is an extension of <a href="/">Parsedown</a> that adds support for <a href="https://michelf.ca/projects/php-markdown/extra/">Markdown Extra</a>.&am
p;#160;<a href="#fnref1:1" rev="footnote" class="footnote-backref">&#8617;</a></p>
</li></ol></div>
The text was updated successfully, but these errors were encountered:
Parsedown: 1.7.4
ParsedownExtra: 0.8.1
Script
Expected Output:
Actual Output:
The text was updated successfully, but these errors were encountered: