-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Description
Follow-up from #230.
YAML or Markdown files may split their files in sections, separated by ---
. We should investigate how addheader
may mess with these files and whether adding comments before a first-line ---
will break them.
We also have special Markdown files that support YAML (or also TOML) in their first section (Hugo refers to that as "front matter"), but pure Markdown (with HTML comments) in the following section:
---
title: My Title
author: Me
# This is a comment in yaml/toml/whatever inside of a Markdown file
---
# Chapter 1
Hello, world.
<!-- This is a comment inside of Markdown -->
Any ideas how we can cover the different cases without making everything too complex and overly specific?
pawamoyniccokunzmann
Metadata
Metadata
Assignees
Labels
No labels