I am using slate, https://github.com/lord/slate, for API documentation. Using slate, a markdown file is converted to HTML. I need to have collapsable sections in my final HTML page. I appreciate if you let me know about the best approach?
As far as I'm aware, markdown or slate don't support this directly. One option could be to mix the <summary>
and <details>
html tags in with your markdown, but then you'd have to style it yourself to match slate's style.