Frontmatter
| id | 9254 |
| title | Fix Markdown inline elements in headlines and adjust inline code margin |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Feb 22, 2026, 5:39 PM |
| updatedAt | Feb 22, 2026, 5:44 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9254 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 22, 2026, 5:44 PM |
Fix Markdown inline elements in headlines and adjust inline code margin
tobiu assigned to @tobiu on Feb 22, 2026, 5:40 PM

tobiu
Feb 22, 2026, 5:40 PM
Input from Gemini 3 Pro:
✦ I have applied the following fixes:
- Refactored
onHeadlinein bothsrc/component/Markdown.mjsandsrc/app/content/Component.mjsto utilizemarked.parseInline()for correct markdown rendering inside headers.- Updated
resources/scss/theme-neo-dark/Global.scssandresources/scss/theme-neo-light/Global.scssto add a horizontal margin (0 0.15em;) to inline code elements (code:not(.hljs)) specifically within headlines, preventing the background from visually colliding with adjacent punctuation marks.

tobiu
Feb 22, 2026, 5:43 PM
Input from Gemini 3 Pro:
✦ The changes have been successfully committed and pushed to the repository. The fix provides proper rendering of inline markdown syntax inside headers, and adds margin adjustments for
code:not(.hljs)inside headlines to prevent visual collisions. Closing this issue.
tobiu closed this issue on Feb 22, 2026, 5:44 PM
onHeadlinewithmarked.parseInline()insrc/component/Markdown.mjsandsrc/app/content/Component.mjs. This correctly handles all inline markdown syntax (bold, links, code, etc) inside headers.code:not(.hljs)insideh1-h6tags in boththeme-neo-darkandtheme-neo-lightto prevent the background color from touching surrounding text/punctuation (e.g., parentheses) by addingmargin: 0 0.15em;.