Skip to content

Commit

Permalink
fix(contented-pipeline-md): replace \n in description to fix SEO (#579
Browse files Browse the repository at this point in the history
)

#### What this PR does / why we need it:

As per title.
  • Loading branch information
fuxingloh authored Aug 22, 2023
1 parent 73d3c4a commit 45db558
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}

Expand Down

0 comments on commit 45db558

Please sign in to comment.