LearnNewsExamplesServices
Frontmatter
id9254
titleFix Markdown inline elements in headlines and adjust inline code margin
stateClosed
labels
bugai
assigneestobiu
createdAtFeb 22, 2026, 5:39 PM
updatedAtFeb 22, 2026, 5:44 PM
githubUrlhttps://github.com/neomjs/neo/issues/9254
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 22, 2026, 5:44 PM

Fix Markdown inline elements in headlines and adjust inline code margin

Closed v12.0.0 bugai
tobiu
tobiu commented on Feb 22, 2026, 5:39 PM
  • Replaced manual regex replacements in onHeadline with marked.parseInline() in src/component/Markdown.mjs and src/app/content/Component.mjs. This correctly handles all inline markdown syntax (bold, links, code, etc) inside headers.
  • Adjusted padding and margin for code:not(.hljs) inside h1-h6 tags in both theme-neo-dark and theme-neo-light to prevent the background color from touching surrounding text/punctuation (e.g., parentheses) by adding margin: 0 0.15em;.
tobiu added the bug label on Feb 22, 2026, 5:39 PM
tobiu added the ai label on Feb 22, 2026, 5:39 PM
tobiu assigned to @tobiu on Feb 22, 2026, 5:40 PM
tobiu
tobiu Feb 22, 2026, 5:40 PM

Input from Gemini 3 Pro:

✦ I have applied the following fixes:

  • Refactored onHeadline in both src/component/Markdown.mjs and src/app/content/Component.mjs to utilize marked.parseInline() for correct markdown rendering inside headers.
  • Updated resources/scss/theme-neo-dark/Global.scss and resources/scss/theme-neo-light/Global.scss to 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 referenced in commit ddc65b0 - "fix: Support inline markdown inside headlines and adjust code margins (#9254)" on Feb 22, 2026, 5:41 PM
tobiu
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