You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #3752 added auto-generation of tease fields for ~850 older news articles that were missing them. The auto-generator strips markdown/HTML to produce plain text. Bjoern raised a good point: if we don't want markup in teases, we should make that an explicit policy rather than silently stripping it during preprocessing.
Currently there's no consistency — some teases have markdown links or emphasis, some are plain text, some are missing entirely. We should pick a direction and enforce it.
Option A: Teases must be plain text
For:
Teases appear in feeds (RSS/XML, JSON, Atom), search indexes, <meta> descriptions, and listing cards — most of these contexts don't render markdown, so markup would show up as raw syntax
Plain text is simpler to validate with a linter (just check for <, [, *, etc.)
Context
PR #3752 added auto-generation of
teasefields for ~850 older news articles that were missing them. The auto-generator strips markdown/HTML to produce plain text. Bjoern raised a good point: if we don't want markup in teases, we should make that an explicit policy rather than silently stripping it during preprocessing.Currently there's no consistency — some teases have markdown links or emphasis, some are plain text, some are missing entirely. We should pick a direction and enforce it.
Option A: Teases must be plain text
For:
<meta>descriptions, and listing cards — most of these contexts don't render markdown, so markup would show up as raw syntax<,[,*, etc.)Against:
If we go this route:
Option B: Teases can contain markdown
For:
Against:
If we go this route:
generateTease()What needs deciding
teasefields?Related: #3752