Gantt, Group by Assignee, Map, Multi Board Calendar, Roadmap, Statistics, Table, Time, Timeline, Board-view titles and Version Control now follow the shared structure, checked against the code. Corrected from the code: the menu names are Frappe Gantt and DHTMLX Gantt; those two draw a card only when it has a Start or Received date, and also draw dated checklist items; Roadmap groups only by text and dropdown fields and puts cards without a value in a No value row instead of leaving them out; Multi Board Calendar labels entries "[Board] Card" and follows the sidebar Filter; the Statistics view no longer shows the time spent summary, which is in the Time view; the Frappe Gantt repository link points to frappe/gantt. Thanks to xet7 !
6.7 KiB
Board-view titles
What it is
Every board view shows titles - of lists, cards, swimlanes, groups and chart rows - and all of them are drawn by one shared viewer. That viewer renders Markdown, emoji and sanitized HTML the same way everywhere, and it follows the same Admin Panel security settings everywhere, so a title cannot look or behave differently, or slip past a security setting, just because it is shown in another view.
Read more
- Markdown, Emoji and HTML sanitization at Wikipedia.
- Cross-site scripting at Wikipedia - what sanitizing and escaping the titles protects against.
- Scalable Vector Graphics at Wikipedia - why chart bar labels can hold text but not HTML.
- WeKan: Security Report, Admin Panel / Settings / Security, Gantt, Roadmap, Timeline, Group by Assignee, Table, Bigboard, Board report charts.
How to use it
There is nothing to switch on: write Markdown or emoji in a title, and every board view shows it formatted.
Where the viewer is used. List headers, minicards, table rows and group headings, timeline list/card names, assignee cards, Bigboard names, original titles and Roadmap headings use the shared viewer for Markdown, emoji and sanitized HTML. Cumulative flow, Control chart and other report charts also render headings and table headers/cells through this viewer. Canvas labels retain rendered text and emoji, with HTML formatting available in the adjacent table.
DHTMLX Gantt task names and tooltips use the same viewer. Frappe Gantt and Roadmap SVG labels display the viewer's text and emoji, with markup escaped for SVG insertion; their popups display the formatted viewer HTML. SVG text labels do not support HTML heading styles. Chart refreshes observe security settings. No Internet connection or new dependency is required.
The security settings. Admin Panel / Problems / Security settings apply consistently:
- Open Admin Panel → Problems and its security settings.
- Render links as plain text removes clickable links while preserving text.
- Always show all code as plain text (the source-as-plain-text setting) displays literal Markdown and emoji codes.
- Open any board view: its titles follow the setting at once, charts included.
How the numbers are calculated
The titles have no numbers of their own. The viewer has no limits or defaults of its own either: it shows the title as stored, and both security settings are off by default.
How it works in WeKan
- The shared viewer: the
+viewertemplate, used directly in the board views' Jade templates (for example roadmapView.jade, timelineView.jade, groupByAssigneeView.jade). - Third-party charts do not mount Blaze templates, so
client/lib/titleViewer.js renders
the same viewer to HTML (
titleViewerHtml, through client/lib/titleViewer.jadechartTitleViewer). For SVG labels,titleViewerTextkeeps only the rendered text and emoji, andtitleViewerSvgTextescapes& < > " ', because Frappe Gantt inserts the label as HTML. Reading the current settings inside the chart's own computation is what makes a chart redraw when a security setting changes. - Settings:
render-links-as-plain-textandalways-show-code-as-textin client/components/settings/adminProblems.jade. - Tests: tests/boardViewTitleViewer.test.cjs, tests/activityViewer.test.cjs, tests/boardChartsAfterFlushContext.test.cjs, tests/playwright/specs/board-view-titles.e2e.js.
Verification
Verification on 2026-09-14: focused Node tests, assignee helper execution and all Jade template compilation passed. Browser tests cover timeline, assignee DHTMLX, cumulative-flow and Control chart titles with formatted, plain-link and literal-source policies; they were syntax-checked but have not been run against a live application. The combined focused run passed all 33 Node test entries, including avatar routing, HTTP authentication and safe attachment responses.
Commits
- The title heading colour guard reads the heading block itself
- Original positions titles through the shared viewer
- Board view titles exercised through visible controls
- Opened card List dropdown titles with the secure viewer
- Markdown heading sizes restored in card titles
- Card numbers kept outside the Markdown title source
- Minicard and opened card titles covered under the security settings
- Report viewer policies recorded
- Control chart titles covered under all viewer policies
- The shared title viewer in cumulative flow and the report charts
- Board title policies and their regression coverage documented
- Time view card titles with the security-aware viewer
- Security-aware title viewers in the timeline and Gantt views