[GH-ISSUE #157] Frontmatter support broken #1983

Closed
opened 2026-03-07 20:03:23 +03:00 by kerem · 0 comments
Owner

Originally created by @Frotty on GitHub (Nov 6, 2018).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/157

Hi, like #27 said,
a file with only frontmatter and missing eof newline will cause strange things to happen:

---
title: Credits & Contact
excerpt: See people involved in Wurst and contact them.
date: 2018-01-29
icon:
  name: icon_gift
color: orange
sections:
  - /contact/creators
  - /contact/contributors
  - /contact/credits
---

Can be worked around locally with an .editorconfig like this:

[*.md]
insert_final_newline = true

But should probably still be addressed in this extension.

Originally created by @Frotty on GitHub (Nov 6, 2018). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/157 Hi, like #27 said, a file with only frontmatter and missing eof newline will cause strange things to happen: ![](https://i.imgur.com/C1k1f9E.png) ``` --- title: Credits & Contact excerpt: See people involved in Wurst and contact them. date: 2018-01-29 icon: name: icon_gift color: orange sections: - /contact/creators - /contact/contributors - /contact/credits --- ``` Can be worked around locally with an `.editorconfig` like this: ``` [*.md] insert_final_newline = true ``` But should probably still be addressed in this extension.
kerem 2026-03-07 20:03:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#1983
No description provided.