Skip to content

desktop: live preview misses indented code without a blank line above #156

Closed

Description

@bketelsen

internal/desktop/livepreview/livepreview.go (linePieces): a line counts as indented code only after a blank line, so one at the top of a note, or right after a heading or a fence, gets its marks hidden as if it were text.

Done when: indented code follows CommonMark's rule: it can't interrupt a paragraph, but needs no blank line otherwise.

From the cross-review of #145 (finding X21, minor).

Activity

  1. added
    bug
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions