mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-06 14:26:35 +03:00
escape frontmatter content so it handles newlines
This commit is contained in:
parent
28df968c36
commit
5785d45f66
@ -19,8 +19,8 @@ function toEntry(entry, includeBody) {
|
||||
|
||||
return `
|
||||
( [${fullPath.join(", ")}]
|
||||
, { frontMatter = """${entry.metadata}
|
||||
""" , body = ${body(entry, includeBody)}
|
||||
, { frontMatter = ${JSON.stringify(entry.metadata)}
|
||||
, body = ${body(entry, includeBody)}
|
||||
, extension = "${extension}"
|
||||
} )
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user