The ticket page showed every description as escaped plain text: renderDescriptionView() in assets/js/ticket.js used lt.escHtml(). Headings, checklists, tables, bold and code from Gandalf, MCP and manual tickets appeared as raw markdown, even though comments render markdown.
Change
assets/js/ticket.js: the read view now renders the description with parseMarkdown(), the same parser markdown comments use. It escapes HTML first and only allows http(s):, mailto: and relative links. The edit view still shows the raw source.
assets/css/ticket.css:.ticket-description-view uses white-space: normal in place of pre-wrap, as markdown comments do, so the parser's paragraphs and line breaks control the layout.
assets/js/markdown.js:_ and __ no longer mean emphasis inside a word (CommonMark rule). node_network_up and snake_case_name stay literal, while _italic_ and __bold__ still work. This also fixes the same problem in comments.
README: notes that API description is rendered as markdown and what reporters should send.
Screenshots
These were taken locally with Playwright: development on the left and this branch on the right, the same synthetic seed data on both, and Chromium at 1280px unless noted. The capture failed on any page or console error, and there were none.
1. Markdown ticket (MCP/manual style), dark. Headings, checklist, table, bold, inline and fenced code, links and a ticket reference. The last line checks that <script> and a javascript: link stay inert.
2. The same ticket, light theme
3. Gandalf alert.node_network_up stays literal.
4. hwmonDaemon box layout. This gets worse, as expected (see Merge order below).
5. Edit mode. Unchanged: it still shows the raw markdown source.
6. Markdown comment. Unchanged, apart from the underscore fix.
7. Phone (Pixel 7). The page doesn't scroll sideways; wide code blocks scroll inside their own box.
Merge order
Prod has 154 hwmonDaemon tickets drawn as a fixed-width box layout (screenshot 4). As markdown, those lose their alignment. LotusGuild/hwmonDaemon#38 switches hwmonDaemon to markdown and converts its past tickets in the database.
Safe now: merge this to development. Beta then shows the change, including jumbled hwmonDaemon tickets.
Hold: the main merge until hwmonDaemon#38 ships, or at least until its closed-ticket rewrite is done.
Checks
eslint: 0 errors (warnings unchanged).
I checked the parser in Node on underscore cases, the XSS cases and the checklist/table case.
I checked page width at phone size: page scrollWidth equals the viewport; the code block has overflow-x: auto.
Existing quirks I didn't change
These already show in markdown comments today:
In the light theme, code-block lines get the inline-code highlight.
A link URL containing (...) ends at the first ).
Follow-ups
A CI PR will add a Playwright UI job and automatic before/after screenshots for UI PRs, modelled on Pulse PRs #49 and #56. It will reuse the seed and capture scripts from this PR.
migrations/migrate.php fails on 001 and 003 on a fresh database: its SQL splitting breaks on their comment text. The mariadb client applies both files cleanly. CI will need this fixed, so it'll go in that PR.
Closes #114.
## Problem
The ticket page showed every description as escaped plain text: `renderDescriptionView()` in `assets/js/ticket.js` used `lt.escHtml()`. Headings, checklists, tables, bold and code from Gandalf, MCP and manual tickets appeared as raw markdown, even though comments render markdown.
## Change
- **`assets/js/ticket.js`:** the read view now renders the description with `parseMarkdown()`, the same parser markdown comments use. It escapes HTML first and only allows `http(s):`, `mailto:` and relative links. The edit view still shows the raw source.
- **`assets/css/ticket.css`:** `.ticket-description-view` uses `white-space: normal` in place of `pre-wrap`, as markdown comments do, so the parser's paragraphs and line breaks control the layout.
- **`assets/js/markdown.js`:** `_` and `__` no longer mean emphasis inside a word (CommonMark rule). `node_network_up` and `snake_case_name` stay literal, while `_italic_` and `__bold__` still work. This also fixes the same problem in comments.
- **README:** notes that API `description` is rendered as markdown and what reporters should send.
## Screenshots
These were taken locally with Playwright: `development` on the left and this branch on the right, the same synthetic seed data on both, and Chromium at 1280px unless noted. The capture failed on any page or console error, and there were none.
**1. Markdown ticket (MCP/manual style), dark.** Headings, checklist, table, bold, inline and fenced code, links and a ticket reference. The last line checks that `<script>` and a `javascript:` link stay inert.

**2. The same ticket, light theme**

**3. Gandalf alert.** `node_network_up` stays literal.

**4. hwmonDaemon box layout.** This gets worse, as expected (see Merge order below).

**5. Edit mode.** Unchanged: it still shows the raw markdown source.

**6. Markdown comment.** Unchanged, apart from the underscore fix.

**7. Phone (Pixel 7).** The page doesn't scroll sideways; wide code blocks scroll inside their own box.

## Merge order
Prod has 154 hwmonDaemon tickets drawn as a fixed-width box layout (screenshot 4). As markdown, those lose their alignment. LotusGuild/hwmonDaemon#38 switches hwmonDaemon to markdown and converts its past tickets in the database.
- **Safe now:** merge this to `development`. Beta then shows the change, including jumbled hwmonDaemon tickets.
- **Hold:** the `main` merge until hwmonDaemon#38 ships, or at least until its closed-ticket rewrite is done.
## Checks
- eslint: 0 errors (warnings unchanged).
- I checked the parser in Node on underscore cases, the XSS cases and the checklist/table case.
- I checked page width at phone size: page scrollWidth equals the viewport; the code block has `overflow-x: auto`.
## Existing quirks I didn't change
These already show in markdown comments today:
- In the light theme, code-block lines get the inline-code highlight.
- A link URL containing `(`...`)` ends at the first `)`.
## Follow-ups
- A CI PR will add a Playwright UI job and automatic before/after screenshots for UI PRs, modelled on Pulse PRs #49 and #56. It will reuse the seed and capture scripts from this PR.
- `migrations/migrate.php` fails on `001` and `003` on a fresh database: its SQL splitting breaks on their comment text. The `mariadb` client applies both files cleanly. CI will need this fixed, so it'll go in that PR.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The ticket page escaped descriptions to plain text, so headings, lists,
tables, bold and code from Gandalf, MCP and manual tickets showed raw.
renderDescriptionView() now uses parseMarkdown(), the same sanitising
parser as comments, and the view drops pre-wrap for normal white space
like markdown comments do. The edit view still shows the raw source.
The parser also no longer treats underscores inside words as emphasis,
so identifiers like node_network_up stay literal (in comments too).
hwmonDaemon's fixed-width box layout loses its alignment as markdown;
LotusGuild/hwmonDaemon#38 switches it to markdown and converts its past
tickets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #114.
Problem
The ticket page showed every description as escaped plain text:
renderDescriptionView()inassets/js/ticket.jsusedlt.escHtml(). Headings, checklists, tables, bold and code from Gandalf, MCP and manual tickets appeared as raw markdown, even though comments render markdown.Change
assets/js/ticket.js: the read view now renders the description withparseMarkdown(), the same parser markdown comments use. It escapes HTML first and only allowshttp(s):,mailto:and relative links. The edit view still shows the raw source.assets/css/ticket.css:.ticket-description-viewuseswhite-space: normalin place ofpre-wrap, as markdown comments do, so the parser's paragraphs and line breaks control the layout.assets/js/markdown.js:_and__no longer mean emphasis inside a word (CommonMark rule).node_network_upandsnake_case_namestay literal, while_italic_and__bold__still work. This also fixes the same problem in comments.descriptionis rendered as markdown and what reporters should send.Screenshots
These were taken locally with Playwright:
developmenton the left and this branch on the right, the same synthetic seed data on both, and Chromium at 1280px unless noted. The capture failed on any page or console error, and there were none.1. Markdown ticket (MCP/manual style), dark. Headings, checklist, table, bold, inline and fenced code, links and a ticket reference. The last line checks that

<script>and ajavascript:link stay inert.2. The same ticket, light theme

3. Gandalf alert.

node_network_upstays literal.4. hwmonDaemon box layout. This gets worse, as expected (see Merge order below).

5. Edit mode. Unchanged: it still shows the raw markdown source.

6. Markdown comment. Unchanged, apart from the underscore fix.

7. Phone (Pixel 7). The page doesn't scroll sideways; wide code blocks scroll inside their own box.

Merge order
Prod has 154 hwmonDaemon tickets drawn as a fixed-width box layout (screenshot 4). As markdown, those lose their alignment. LotusGuild/hwmonDaemon#38 switches hwmonDaemon to markdown and converts its past tickets in the database.
development. Beta then shows the change, including jumbled hwmonDaemon tickets.mainmerge until hwmonDaemon#38 ships, or at least until its closed-ticket rewrite is done.Checks
overflow-x: auto.Existing quirks I didn't change
These already show in markdown comments today:
(...)ends at the first).Follow-ups
migrations/migrate.phpfails on001and003on a fresh database: its SQL splitting breaks on their comment text. Themariadbclient applies both files cleanly. CI will need this fixed, so it'll go in that PR.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.