Frontmatter
| id | 8230 |
| title | Sanitize issue titles in markdown frontmatter |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 31, 2025, 3:24 PM |
| updatedAt | Dec 31, 2025, 3:30 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8230 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 31, 2025, 3:30 PM |
Sanitize issue titles in markdown frontmatter
tobiu assigned to @tobiu on Dec 31, 2025, 3:24 PM

tobiu
Dec 31, 2025, 3:30 PM
Input from Gemini:
✦ I have implemented the requested changes in
IssueSyncer.mjs.Changes:
- Added
lineBreaksRegexconstant to detect line breaks.- Updated
#formatIssueMarkdownto sanitize the maintitlefield in the frontmatter.- Updated
#formatIssueMarkdownto sanitize titles withinsubIssues,blockedBy, andblockinglists.Verification:
- Verified that all title insertions into the frontmatter object now include
.replace(lineBreaksRegex, ' ').Closing this issue as the implementation is complete.
tobiu closed this issue on Dec 31, 2025, 3:30 PM
tobiu cross-referenced by #8231 on Dec 31, 2025, 3:47 PM
As identified in the follow-up to #8229, some GitHub issue titles contain line breaks (e.g., #6941). This can break the YAML frontmatter structure, both for the main
titlefield and when titles are included insubIssues,blockedBy, orblockinglists.Goal: Ensure all titles used in the markdown frontmatter (main title and list items) are sanitized to be single-line strings.
Implementation:
IssueSyncer.mjs./[\r\n]+/g).title.subIssues,blockedBy, andblockinglists.Example Transformation: Original Title: "Implement Class-Aware Merging\nReplacement"
Sanitized Title: "Implement Class-Aware Merging Replacement"