How to have collapsable headings in markdown?

238 views Asked by At

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?

1

There are 1 answers

1
Michael On BEST ANSWER

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.