fix(frontmatter): do not trim whitespace (#663)

Do not strip leading or trailing newlines. Doing so had interferred with
users' intended cheatsheet layouts.
This commit is contained in:
Christopher Allen Lane
2022-08-26 12:06:13 -04:00
parent f1540290a7
commit f0bfeda47a
2 changed files with 11 additions and 4 deletions

View File

@ -51,7 +51,7 @@ func New(
Title: title,
CheatPath: cheatpath,
Path: path,
Text: text + "\n",
Text: text,
Tags: tags,
Syntax: fm.Syntax,
ReadOnly: readOnly,