Skip to content

Conversation

@basnijholt
Copy link
Owner

Summary

  • Code blocks inside list items or other indented contexts now work correctly
  • The indentation prefix is stripped from code before execution
  • Output lines are re-indented to match the OUTPUT:START marker's indentation

Test plan

  • Added test cases for indented Python, Python with internal indentation, and Bash
  • All 38 tests pass with 100% coverage
  • README processing verified to work correctly

Fixes #11

Code blocks inside list items or other indented contexts now work correctly.
The indentation is stripped from code before execution and re-added to output.
@basnijholt basnijholt merged commit b56bf5c into main Jan 14, 2026
14 checks passed
@basnijholt basnijholt deleted the fix-indented-code-blocks branch January 14, 2026 17:17
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.

Make work with indented code

2 participants