Add ToC in mardown #3920
-
|
I have marddown content files that I would like to auto generate a Table of Contents for. The catch is that I'd like us to be able to include the ToC anywhere we specify in the markdown content file. Is that possible? Example: src/blog/posts/test.md I get we can add a ToC to a template that renders the markdown, but that would restrict us to having the ToC always be in the same spot. The |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I use a plugin to do this and can place the TOC wherever I want. I covered it in this blog post. https://bobmonsour.com/blog/going-all-in-with-native-markdown/ |
Beta Was this translation helpful? Give feedback.
-
|
I'm glad that was helpful. There's also a bunch of good 11ty stuff over
here at a thing I built. https://11tybundle.dev
…On Sat, Aug 9, 2025 at 4:46 PM Gabi Dombrowski ***@***.***> wrote:
You're awesome, this works great. Thanks!
—
Reply to this email directly, view it on GitHub
<#3920 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABAWW2A5ZV3OORZZHOOUDT3M2B63AVCNFSM6AAAAACDQN2VM6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMBWGAYTMMY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
I use a plugin to do this and can place the TOC wherever I want. I covered it in this blog post.
https://bobmonsour.com/blog/going-all-in-with-native-markdown/