Reputation: 17330
after installing erusev/parsedown library package i want to make internal links with Markdowns
like with this code:
$Parsedown = new Parsedown();
echo $Parsedown->text("* [Hello](#hello)
* [Hello World](#hello-world)
* [Another section](#new-section)
## Hello
### Hello World
## New section");
in this code i expect ## New section
must be have id
, but after show this markdown this part of text doesn't have any id
to make simple internal link
Upvotes: 1
Views: 438
Reputation: 518
You have to include the extension of the Parsedown class. You just need to include the ParsedownExtra.php file (or if you are using Composer, just composer require erusev/parsedown-extra) and make an instance of the ParsedownExtra class. See more
Hope this will solve your problem.
Upvotes: 1