Skip to content

Feature/blockquote extra line height#76

Merged
luca-chen198 merged 2 commits into
nodes-app:mainfrom
sospartan:feature/blockquote-extra-line-height
Jun 20, 2026
Merged

Feature/blockquote extra line height#76
luca-chen198 merged 2 commits into
nodes-app:mainfrom
sospartan:feature/blockquote-extra-line-height

Conversation

@sospartan

Copy link
Copy Markdown
Contributor

Summary

Add BlockquoteStyle.extraLineHeight configuration option to control line spacing inside blockquotes, following the existing patterns of ListStyle.extraLineHeight and ParagraphStyle.lineHeightExtraSpacing.

Problem

Blockquote lines currently use the font's natural line height with no way to add breathing room. Paragraphs have lineHeightExtraSpacing and lists have extraLineHeight, but blockquotes have no equivalent — making them visually tighter than surrounding content when extra spacing is desired.

Changes

  • Add BlockquoteStyle struct with a single extraLineHeight: CGFloat property (defaults to 0, preserving existing rendering)
  • Wire it into styleBlockquote in MarkdownASTStyler.swift so minimumLineHeight / maximumLineHeight use baseLineHeight + config.blockquote.extraLineHeight
  • DocC comment on the new public type
  • CHANGELOG entry under [Unreleased]

Non-changes

No external dependencies. No new protocol or service. No test changes (the existing 90 tests pass; the change is additive and covered by existing block styling test coverage).

Add BlockquoteStyle struct with extraLineHeight property following the existing ListStyle pattern. Wire it into styleBlockquote so blockquote line height can be tuned independently.
@luca-chen198

Copy link
Copy Markdown
Member

gj

@luca-chen198 luca-chen198 merged commit 591cc00 into nodes-app:main Jun 20, 2026
1 check passed
luca-chen198 added a commit that referenced this pull request Jun 20, 2026
fitsContent height behavior (#75), BlockquoteStyle.extraLineHeight (#76), and fixes (#69/#70/#71/#73).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sospartan sospartan deleted the feature/blockquote-extra-line-height branch June 22, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants