Liquid Tag to generate a table of contents #19932
jmfayard
started this conversation in
Feature Requests
Replies: 1 comment
-
|
I second that request, please 🙏 GitLab flavored Markdown has it :
For now I use https://derlin.github.io/bitdowntoc/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My article 20+ Lessons I've Learned Writing on DEV for 4 Years is quite long

But it does have an handy table of contents
"Here I want a table of contents" is a feature you can have litterally everywhere
/listoffigures,/listoftablesand friends:toc:But crucially it's not present in Markdown.
But it should really.
There are multiple markdown table of contents generator, for visual studio code, as a web tool.
But I had to try multiple ones to find one that works reliably on DEV.to including when I use smileys and stuff.

It works with just
[TOC]https://derlin.github.io/bitdowntoc/
Suggestion
Add an official liquid tag on Forem
{% toc %}that would do the same as bitdowntochttps://developers.forem.com/frontend/liquid-tags
Alternative:
#15627 is about having a navigation widget outside of the article.
This is a good idea but I don't think it's an either/or, we could have both.
Beta Was this translation helpful? Give feedback.
All reactions