Skip to content

Support reading of title from H1 element #1097

@mcepl

Description

@mcepl

Describe the feature you'd like to request

(originally filed as ashwinvis/myst-reader#48, but it probably belongs more here)

The Markdown module can substitute title value by the value of the first H1 element present in the body of text. That makes the Markdown document more generic and less bound to the particular reader. Would it be possible to extend MyST-Parser to be able to do it as well, please?

Describe the solution you'd like

The page would be valid even without title: express metadata, and its value could be (optionally?) sourced from the first H1 element.

Describe alternatives you've considered

Not applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions