mirror of
https://github.com/discourse/discourse.git
synced 2025-04-21 21:09:05 +08:00

Continues the work done on https://github.com/discourse/discourse/pull/30815. Adds `details` and `summary` nodes, parsers, and serializers, and a click handler to toggle the `open` attribute. --------- Co-authored-by: Martin Brennan <martin@discourse.org>
discourse-details
HTML 5.1 <details>
polyfill for Discourse.
NOTE: Does not work on IE9, but we don't support IE9 as of Jan 1 2016.
Usage
In your posts, surround text with [details=your summary]
... [/details]
.
For example:
I watched the murder mystery on TV last night. [details=Who did it?]The butler did it[/details].
Installation
Follow our Install a Plugin howto, using
git clone https://github.com/discourse/discourse-details.git
as the plugin command.
Issues
If you have issues or suggestions for the plugin, please bring them up on Discourse Meta.
License
MIT