0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-calendar/lib
Régis Hanol f91d7a9976
FIX: Cook event location and description as inline markdown (#41994)
Previously, a markdown link in an event's location rendered correctly in
email notifications but showed as raw `[text](url)` markup on the event
card. Every surface (card, email, topic excerpt) re-implemented its own
rendering of the same fields, and `extract_events` HTML-escaped the
stored location one level further on every edit.

This change cooks `location` and `description` once, server side, with a
restricted inline pipeline (links and emoji only, so onebox embeds
cannot return), and every surface renders through that shared cook — the
card via new `location_html`/`description_html` serializer attributes.
It stops escaping the stored location, with a migration healing existing
rows, and moves the composer's `[event]` parsing onto core's
`parseBBCodeTag` so quoted attribute values containing `]` survive
round-trips.

Ref - t/188447
2026-07-28 18:59:23 +02:00
..
discourse_calendar FEATURE: Embedded Zoom webinar for livestream events (#40973) 2026-07-16 10:58:56 +10:00
discourse_post_event FIX: Cook event location and description as inline markdown (#41994) 2026-07-28 18:59:23 +02:00
tasks DEV: Fix javascript:update_constants task (#35994) 2025-11-12 20:01:29 +01:00
calendar.rb
calendar_custom_fields_validator.rb FIX: Support uppercase and separators in event custom field names (#40995) 2026-06-24 17:02:32 +02:00
calendar_first_day_of_week.rb FEATURE: allow picking first day of week in calendar (#34670) 2025-09-02 12:44:50 +02:00
calendar_settings_validator.rb
calendar_upcoming_events_default_view.rb FEATURE: adds calendar_upcoming_events_default_view setting (#36014) 2025-11-13 19:19:13 +08:00
calendar_validator.rb
event_validator.rb FIX: Whisper messages should not create calendar events (#40282) 2026-06-01 12:04:51 -03:00
group_timezones.rb
holiday_status.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
time_sniffer.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
users_on_holiday.rb