Frontmatter
| id | 8918 |
| title | Markdown Component: Support links in headlines |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Jan 31, 2026, 2:32 AM |
| updatedAt | Jan 31, 2026, 2:33 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8918 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 31, 2026, 2:33 AM |
Markdown Component: Support links in headlines

tobiu
Jan 31, 2026, 2:33 AM
Input from Gemini 3 Pro:
✦ I have implemented the fix in
src/component/Markdown.mjs. TheonHeadlinemethod now includes a regex replacement for markdown links[text](url), ensuring they are correctly rendered as anchor tags within the custom headline elements.Commit: 51d9238b7
tobiu assigned to @tobiu on Jan 31, 2026, 2:33 AM
tobiu closed this issue on Jan 31, 2026, 2:33 AM
The
Neo.component.Markdownclass uses a custommodifyMarkdownmethod to intercept and format headlines (#,##,###) with custom classes (e.g.,class="neo-h1").However, the
onHeadlinemethod currently only supports inline code replacement. It does not parse markdown links ([text](url)). Because this custom parsing happens before the content is passed tomarked.parse, and becausemarkedpreserves HTML blocks, links inside headlines are rendered as raw text.Example:
### [My Link](url)renders as<h3>[My Link](url)</h3>instead of<h3><a href="url">My Link</a></h3>.Proposed Fix: Update
src/component/Markdown.mjsto include a regex replacement for markdown links within theonHeadlinemethod.Location:
src/component/Markdown.mjs->onHeadline()