Skip to content

computeLede: skip code fences/headings before treating a block as the lede #616

Description

@unforced

From the #613 review (verified live): a note whose first post-title block is a code fence gets raw backticked code as its lede in expand_mode:summary fallback; a heading block returns the raw '## Section' marker-included. computeLede has zero markdown-block awareness — mismatching its own 'first non-empty paragraph' docstring. Additive-path-only today (fires only where nothing rendered before), so non-blocking — fix: skip fenced blocks + heading-only lines (and probably list normalization) before selecting the lede paragraph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions