0px Cumulative Line Drift Alignment
Traditional split-screen Markdown editors suffer from vertical drift between line number gutters, cursor line highlights, and text content when scrolling long documents.
Engineering Implementation
Marka solves this with a custom layout engine:
1. Measured preferredLineHeight: Calculates exact integer font metrics.
2. Centered StrutStyle: Enforces uniform vertical line bounds for every paragraph, heading, and code block.
3. Zero Cumulative Drift: Guarantees 0px offset across 200+ lines of long text.
// Core alignment StrutStyle snippet
const StrutStyle(
fontFamily: 'JetBrainsMono',
fontSize: 14.0,
height: 1.6,
leading: 0.0,
forceStrutHeight: true,
);