Hey, I was just wondering if someone thought of this?
This could be a simple card that you could add, along side the HTML, markdown and other cards in the Koenig Editor.
Would this be something that the ghost team want in the Koenig editor? I’m open to make a contribution, I do need some guidance on where in the ghost core this should be implemented.
Some basic jquery can get all the header elements and then you would just need to format the output:
$("h1, h2, h3, h4, h5, h6")
Edit: I use a table of contents for pretty much every post on my website. It’s really useful for the user and myself as well - it just makes it easier to navigate long form articles.
The problem is that I can spend a good 5 minutes doing this manual task for every post, but it’s not that hard to automate.