0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/plugins/discourse-calendar/spec/lib/discourse_post_event
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
..
event_excerpt_spec.rb FEATURE: render links to event topics as interactive cards (#40953) 2026-07-17 10:36:54 -04:00
event_finder_spec.rb FEATURE: render links to event topics as interactive cards (#40953) 2026-07-17 10:36:54 -04:00
event_onebox_data_spec.rb FEATURE: render links to event topics as interactive cards (#40953) 2026-07-17 10:36:54 -04:00
event_parser_spec.rb FIX: Cook event location and description as inline markdown (#41994) 2026-07-28 18:59:23 +02:00
pretty_text_spec.rb FIX: Cook event location and description as inline markdown (#41994) 2026-07-28 18:59:23 +02:00
rrule_configurator_spec.rb FEATURE: simplifed event creation in the composer (#39835) 2026-05-26 15:04:05 -04:00
rrule_generator_spec.rb
time_sniffer_spec.rb
topic_extension_spec.rb FIX: Topic Merging with Events (#41369) 2026-07-02 13:30:34 -05:00