0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/discourse-calendar/test/javascripts/acceptance
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
..
admin-holidays-test.js
calendar-click-to-create-test.js FIX: clicking calendar day fires composer discard modal (#40477) 2026-06-02 17:34:46 -04:00
category-calendar-navigation-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
category-calendar-subcategories-test.js FIX: Respect the category subcategory filter for events (#41741) 2026-07-15 17:49:33 +02:00
category-events-calendar-outlet-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
category-events-calendar-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
create-event-composer-action-test.js FEATURE: add API for custom composer actions, new "event" composer action (#40203) 2026-05-28 09:56:34 -04:00
events-create-topic-button-test.js FEATURE: "new event" button in events categories (#40173) 2026-05-21 13:04:34 -04:00
notifications-test.js DEV: Remove queryAll uses in core tests (#41324) 2026-07-01 11:55:39 +01:00
post-event-builder-test.js FIX: Cook event location and description as inline markdown (#41994) 2026-07-28 18:59:23 +02:00
sidebar-upcoming-events-item-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
topic-calendar-events-test.js DEV: Fixup the calendar test helper (#39487) 2026-04-23 12:48:14 +02:00
topic-calendar-holidays-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
topic-title-decorator-test.js DEV: Remove queryAll uses in core tests (#41324) 2026-07-01 11:55:39 +01:00
upcoming-events-calendar-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00