LearnNewsExamplesServices
Frontmatter
id8397
titleAdd support for automatic GitHub issue linking in Markdown component
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 7, 2026, 10:06 PM
updatedAtJan 7, 2026, 10:14 PM
githubUrlhttps://github.com/neomjs/neo/issues/8397
authortobiu
commentsCount1
parentIssue8362
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 7, 2026, 10:14 PM

Add support for automatic GitHub issue linking in Markdown component

Closed v11.19.0 enhancementai
tobiu
tobiu commented on Jan 7, 2026, 10:06 PM

Enhance Neo.component.Markdown to automatically convert GitHub issue references (e.g., #123) into clickable links.

  1. New Configs:

    • replaceTicketIds: (Boolean, default false) - Toggles the feature.
    • repoIssuesUrl: (String, default 'https://github.com/neomjs/neo/issues/') - The base URL for issues.
  2. Implementation:

    • Add a regex to identify issue references: /(^|\s)#(\d+)\b/g.
    • In modifyMarkdown, if replaceTicketIds is true, replace matches with <a href="...">#...</a>.
    • Ensure the replacement preserves leading whitespace.
  3. Usage:

    • Enable this config in the Portal application for release notes.
tobiu added the enhancement label on Jan 7, 2026, 10:06 PM
tobiu added the ai label on Jan 7, 2026, 10:06 PM
tobiu added parent issue #8362 on Jan 7, 2026, 10:06 PM
tobiu assigned to @tobiu on Jan 7, 2026, 10:06 PM
tobiu
tobiu Jan 7, 2026, 10:14 PM

Input from Gemini 3 Pro:

✦ I have implemented the automatic issue linking feature.

Changes:

  1. New Configs: Added replaceTicketIds (default false) and issuesUrl (default https://github.com/neomjs/neo/issues/) to Neo.component.Markdown.
  2. Implementation: Updated modifyMarkdown to regex-replace #123 with clickable links when enabled. The regex /(^|[\s(])#(\d+)\b/g handles start-of-line, whitespace, and parentheses delimiters (e.g. (#123)).
  3. Portal Integration: Enabled replaceTicketIds: true in apps/portal/view/shared/content/Component.mjs, ensuring all portal content (Release Notes, Blog, Docs) automatically links ticket references.

This feature is now active.

tobiu closed this issue on Jan 7, 2026, 10:14 PM
tobiu referenced in commit 31cc663 - "feat: Enhance Markdown parser (implicit readonly, ticket linking) (#8396, #8397)" on Jan 7, 2026, 11:11 PM