Skip to content

Tags: jlevy/flowmark

Tags

v0.5.6

Toggle v0.5.6's commit message
fix: prevent extra blank lines after headings with hard breaks

When a heading ends with a hard break (\), the content continues on the
next line, so we should not add an extra blank line. This fixes the bug
where comment lines ending with hard breaks would have blank lines
incorrectly inserted after them.

Also added comprehensive test suite for heading spacing and hard line
breaks to prevent regressions.

Changes:
- Modified render_heading to detect headings ending with backslash
- When hard break detected, use single newline instead of double
- Added test_heading_spacing.py with 9 tests covering:
  - Basic heading spacing (blank line after headings)
  - Headings before lists, quotes, and code blocks
  - Headings with hard breaks (the corner case)
  - Hard breaks in regular paragraphs and list items
  - Hard breaks after comment lines

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

v0.5.5

Toggle v0.5.5's commit message
test: add bold paragraph before list test case

Added test case with bold text paragraph followed by list to
verify blank line insertion works correctly.

Example:
  **Related Architecture**:
  - [link] - description

Output correctly adds blank line after the bold paragraph.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

v0.5.4

Toggle v0.5.4's commit message
Test on Python 3.14.

v0.5.3

Toggle v0.5.3's commit message
Copier update.

v0.5.2

Toggle v0.5.2's commit message
Update readme.

v0.5.1

Toggle v0.5.1's commit message
Small improvement to smartquotes.

v0.5.0

Toggle v0.5.0's commit message
Small smartquote improvement.

v0.4.9

Toggle v0.4.9's commit message
Add --width option.

v0.4.8

Toggle v0.4.8's commit message
Auto-format readme.

v0.4.7

Toggle v0.4.7's commit message
Bugfix of title quotes.