Skip to content

View mode should strip empty blocks #213

Description

@oobagi

Summary

In view mode, empty blocks (blank paragraphs used as spacers in edit mode) should be stripped from the rendered output to produce a cleaner reading experience.

Current behavior

Empty paragraph blocks render as blank lines in view mode, creating excessive vertical whitespace that doesn't match the intended reading layout.

Expected behavior

  • View mode rendering skips blocks where Content == "" and the block type is Paragraph
  • Edit mode is unaffected — empty blocks remain as editable spacers
  • Other empty block types (e.g., empty Divider) are unaffected since they have visual meaning

Motivation

View mode is designed for a clean, mdfried-inspired reading experience (centered content, no header, minimal chrome). Stray empty blocks break this polish.

🤖 Generated with Claude Code

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions