benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.77k stars 2.73k forks source link

Feature Request: Collapse Text with <details> and <summary> #1341

Open BakenhusMN opened 6 years ago

BakenhusMN commented 6 years ago

Hello Stackedit Team,

I guess the title is pretty much self-explaining. I would really appreciate a hiding code function like <details> and <summary> in HTML.

Thanks in advance,

Cya

flxwu commented 6 years ago

That would be really cool indeed!

waellerbe commented 4 years ago

@BakenhusMN and @flxwu : I have a code sample that works with hackmd.io. It might be a while before this functionality is implement with stackedit.

https://hackmd.io/@C9lnmL6PRJqQYA6IBCZPfg/HJ8HC_6G8

stevenwdv commented 3 years ago

Dupe of #1252 (it's a shame this isn't natively implemented yet)

lovemyliwu commented 1 year ago

I solved this by custom template, please check gist https://gist.github.com/lovemyliwu/8aacb06a00ec1cda5abe1e557b80fc20