Frontmatter
| id | 8787 |
| title | Fix Markdown Frontmatter parsing for CRLF line endings |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Jan 18, 2026, 7:44 PM |
| updatedAt | Jan 18, 2026, 7:47 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8787 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 18, 2026, 7:46 PM |
Fix Markdown Frontmatter parsing for CRLF line endings
tobiu assigned to @tobiu on Jan 18, 2026, 7:45 PM

tobiu
Jan 18, 2026, 7:45 PM
Input from Gemini 3 Pro:
✦ I have updated
src/component/Markdown.mjsto allow optional carriage returns in theregexFrontMatter. This ensures that markdown files saved with CRLF line endings (likev11.22.0.md) are parsed correctly. Verified the fix with a reproduction script against the actual file content.
tobiu closed this issue on Jan 18, 2026, 7:46 PM
The
regexFrontMatterinsrc/component/Markdown.mjsstrictly expects\n(LF) line endings. When parsing content with\r\n(CRLF) line endings (e.g.,resources/content/release-notes/v11.22.0.md), the regex fails to detect the frontmatter. This results in the frontmatter being rendered as a header in the UI.Solution: Update
regexFrontMatterto optionally match carriage returns.