discourse/plugins/discourse-details
Jarek Radosz 2fc70c5572
DEV: Correctly tag heredocs (#16061)
This allows text editors to use correct syntax coloring for the heredoc sections.

Heredoc tag names we use:

languages: SQL, JS, RUBY, LUA, HTML, CSS, SCSS, SH, HBS, XML, YAML/YML, MF, ICS
other: MD, TEXT/TXT, RAW, EMAIL
2022-02-28 20:50:55 +01:00
..
assets DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
config Update translations (#15416) 2021-12-28 14:13:58 +01:00
spec/components DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
test/javascripts DEV: Fix linting issues in core plugins (#14916) 2021-11-13 15:31:42 +01:00
LICENSE add discourse-details plugin 2015-11-30 11:32:01 +01:00
plugin.rb DEV: Remove .es6 extensions from core (#14912) 2021-11-13 12:51:53 +01:00
README.md for docs, normalize on space after code fence when specifying lang 2019-01-21 01:19:28 -08:00

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