mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-06 05:26:56 +02:00
Previously, Markdown files without explicit 'Title:' metadata would fail
to get titles extracted from their first heading, unlike RST files which
support both metadata and heading-based title extraction.
New Configuration Options:
- HEADING_METADATA: Enable/disable heading metadata extraction
- HEADING_METADATA_MAP: Map heading levels to metadata fields
- HEADING_METADATA_PATTERNS: Custom regex patterns for extraction
Resolves issue where markdown files like:
Date: 2023-12-01
Category: tech
# My Article Title
Can now have titles extracted without manual Title: metadata.
Fixes also the issue where Markdown articles showed duplicate titles
when HEADING_METADATA=True was set in configuration.
References: https://github.com/getpelican/pelican/discussions/3290
Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
147 B
147 B
Release type: minor
Added HEADING_METADATA feature for extracting metadata from Markdown headings using configurable patterns and level mappings.