timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.64k stars 2.01k forks source link

Collapsable Markdown Headers/Lists #882

Open wbrenton opened 6 months ago

wbrenton commented 6 months ago

Has anyone experimented with enabling Headers or lists in markdown to be collapsible/expandable as they are in Obsidian or Roam Research?

For very long posts this would be a very nice addition, making it easier for the reader to get a feel for the post as a whole and compartmentalize it in the way the author intended.

timlrx commented 5 months ago

You could consider adding a rehype plugin that nests the contents under a header to a details tag