Pooneh
Pooneh

Reputation: 67

How to have collapsable headings in markdown?

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?

Upvotes: 2

Views: 384

Answers (1)

Michael
Michael

Reputation: 26

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.

Upvotes: 1

Related Questions