Function: plainSeoDescription() ​

Source: 1.6.3 · aea2a9b6dbec

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

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

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