# Fix #13 — Indented (4-space) code blocks
A regular paragraph.
let x = 5;
let y = 10;
println!("{}", x + y);
The block above is four-space-indented and should render as a code block,
not as a paragraph with extra leading spaces.
Tab-indented code:
fn tab_indented() -> i32 {
42
}
A line with only three spaces of indent:
not a code block, just a paragraph
After a paragraph ends, a four-space indent following a blank line becomes
code:
if (paragraph_ended_with_blank_line) {
treat_as_code_block();
}
A list item still uses 4-space indent for nesting, not for code:
- top-level item
indented continuation here is part of the list
- another item