Markdown Hard BreakAdd and manage Markdown hard breaks (2 trailing spaces) with ease. This extension helps you properly format Markdown files for correct line break rendering in GitHub, GitLab, and other Markdown processors. FeaturesAdd Hard Break
Adds exactly 2 trailing spaces to the current line or selected lines. Smart enough to:
Normalize Hard Breaks
Ensures every line in your document has exactly 2 trailing spaces. Removes extra spaces if more than 2 exist. UsageSingle LinePlace cursor on a line and press Multiple LinesSelect multiple lines and use the command to add hard breaks to all selected lines. Normalize DocumentRun Behavior
␠ = space character Why Hard Breaks?In Markdown, a single newline is often treated as a space. To create a true line break, you need either:
This extension handles the trailing spaces approach, which is the most widely supported method. Requirements
Extension SettingsNo configuration needed. The extension works out of the box. Release Notes1.0.0
Enjoy! |