I wonder if it’s possible to have some kind of automatic headline list from my markdown text…
for example what i am trying to accomplish is, when writing a very long article with multiple h2, h3, h4 markdown tags to have an automated way to list some sort of index based on headlines so a viewer can jump right into the topic of choice.
so basically the script is reading the $page->text() field and identifies each
tag and generates a list with id hopping links towards each headline.
can anyone pinpoint in a direction ?