mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
Apply Markdown, emojis and permitted HTML to card and sidebar activity values. Sanitize completed sentences and honor plain-link mode, retaining existing source URL guards and avoiding nested navigation anchors. Add positive, negative and browser regression coverage. Thanks to xet7 !
21 lines
1.1 KiB
Markdown
21 lines
1.1 KiB
Markdown
# Activity rendering
|
|
|
|
Opened-card activities and the right sidebar share the same activity template.
|
|
Activity titles, checklist text, labels, custom-field values, comment excerpts,
|
|
source names and attachment names use the existing Markdown/emoji viewer.
|
|
HTML allowed by the existing sanitizer is rendered with the same restrictions
|
|
as other viewer fields. No new HTML tags or URL schemes are permitted.
|
|
|
|
Admin Panel → Problems → Security controls apply:
|
|
|
|
- Plain-source mode displays literal source, including Markdown and HTML.
|
|
- Render links as plain text removes clickable links from activity sentences.
|
|
- Normal mode renders Markdown, emoji and permitted HTML after sanitization.
|
|
|
|
Imported source URLs retain their HTTP/HTTPS check. When a rich title contains
|
|
its own link, activity navigation is shown beside it to avoid nested anchors.
|
|
|
|
Focused activity-link, viewer, source-URL and Jade compilation checks pass.
|
|
Browser regressions cover both feeds, permitted HTML, unsafe event attributes
|
|
and all three display modes. They are syntax-checked; live execution is pending.
|