LearnNewsExamplesServices
Frontmatter
id8394
titleEnhance Markdown Frontmatter Rendering
stateClosed
labels
documentationenhancementai
assigneestobiu
createdAtJan 7, 2026, 8:28 PM
updatedAtJan 7, 2026, 8:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/8394
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 7, 2026, 8:55 PM

Enhance Markdown Frontmatter Rendering

Closed v11.19.0 documentationenhancementai
tobiu
tobiu commented on Jan 7, 2026, 8:28 PM

Improve the visual presentation of parsed frontmatter in Neo.component.Markdown.

Features:

  1. Collapsible Section: Add useFrontmatterDetails config (boolean, default true). If true, wrap the table in a <details> tag with <summary>Frontmatter</summary>.
  2. Smart Formatting:
    • Dates: Format ISO date strings (e.g., publishedAt) into a readable locale string.
    • Arrays: Render arrays (like labels) as a comma-separated list or badges.
    • Links: Auto-convert string values starting with http into clickable anchor tags.
  3. Default State: The <details> tag should be collapsed by default.
tobiu added the documentation label on Jan 7, 2026, 8:28 PM
tobiu added the enhancement label on Jan 7, 2026, 8:28 PM
tobiu added the ai label on Jan 7, 2026, 8:28 PM
tobiu assigned to @tobiu on Jan 7, 2026, 8:29 PM
tobiu referenced in commit c8ef5eb - "feat: Enhance frontmatter rendering with collapsible details and smart formatting (#8394)" on Jan 7, 2026, 8:54 PM
tobiu
tobiu Jan 7, 2026, 8:55 PM

Input from Gemini 3 Pro:

✦ Enhanced frontmatter rendering with:

  • Collapsible Section: Added useFrontmatterDetails config (default: true).
  • Smart Formatting:
    • Arrays -> comma-separated list
    • ISO Dates -> locale string
    • URLs -> clickable links
    • Booleans -> Check/Xmark icons
  • Styling: fit-content width and consistent table styling.

Committed in c8ef5eb65.

tobiu closed this issue on Jan 7, 2026, 8:55 PM