0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/plugins/discourse-calendar/spec/serializers
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_post_event FIX: Cook event location and description as inline markdown (#41994) 2026-07-28 18:59:23 +02:00
chat_channel_serializer_spec.rb UX: improve livestream chat messaging (#41750) 2026-07-21 11:07:31 +10:00
post_serializer_spec.rb SECURITY: Group timezone serialization leaks hidden group members (#40873) 2026-06-15 12:51:05 +01:00
topic_list_item_serializer_spec.rb
topic_view_serializer_spec.rb UX: improve livestream chat messaging (#41750) 2026-07-21 11:07:31 +10:00
user_serializer_spec.rb DEV: Don't use fab! for non-ActiveRecord model objects (#39272) 2026-04-15 00:52:34 +02:00