diff --git a/packages/contented-pipeline-md/src/plugins/RemarkFrontmatter.ts b/packages/contented-pipeline-md/src/plugins/RemarkFrontmatter.ts index 2b3de413..dd2d81da 100644 --- a/packages/contented-pipeline-md/src/plugins/RemarkFrontmatter.ts +++ b/packages/contented-pipeline-md/src/plugins/RemarkFrontmatter.ts @@ -40,7 +40,7 @@ function visitDescription(file: VFile): (node: Paragraph) => void { return; } - contented.fields.description = toString(node).substring(0, 300); + contented.fields.description = toString(node).replaceAll('\n', ' ').substring(0, 300); }; }