Function: plainSeoDescription() ​

Source: 1.2.2 · f05e2ff455c2

ts
function plainSeoDescription(markdown, maxLength?): string;

Defined in: packages/valaxy/shared/seo.ts:85

Plain-text summary for meta descriptions and share cards. Fenced code, HTML comments, and images are removed. Headings are skipped so the title is not repeated as the description. Longer text is cut on a space when one is near the end, otherwise on the character limit, then marked with an ellipsis.

Parameters ​

markdown ​

string

maxLength? ​

number = 200

Returns ​

string