discourse/plugins/discourse-details
Régis Hanol d4af30f26d FIX: elided content in email should always have an href
Not 100% sure why the changes in `PrettyText.format_for_email` raised this issue, but we were missing adding a link to the Discourse instance whenever we are replacing the elided part of a post with a link to either the post or the Discourse instance in the email.

Also reformated the specs using better variable names (sometimes a variable named `md` would contain some html) and used the `match_html` helper for all the tests.
2024-05-22 15:38:18 +02:00
..
assets DEV: Single admin plugin page for consistent admin plugin UX (#26024) 2024-03-13 13:15:12 +10:00
config Update translations (#25659) 2024-02-13 16:11:30 +01:00
spec FIX: elided content in email should always have an href 2024-05-22 15:38:18 +02:00
test/javascripts DEV: remove markdown-it-bundle and custom build code (#23859) 2023-11-06 16:59:49 +00:00
LICENSE add discourse-details plugin 2015-11-30 11:32:01 +01:00
plugin.rb FIX: elided content in email should always have an href 2024-05-22 15:38:18 +02: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