diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-07 10:46:55 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-07 10:46:55 +0100 |
| commit | af014cfe5eea4233d8034c79c1a5f898c972396c (patch) | |
| tree | 3345554e62d3f1696006fdb42296be5c744fbf77 /src/library/par.rs | |
| parent | 5fd9c0b0d7b519802d56dd04cb61340c11014cb1 (diff) | |
Tidy up styling
Diffstat (limited to 'src/library/par.rs')
| -rw-r--r-- | src/library/par.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library/par.rs b/src/library/par.rs index 87ad2ebe..38d15097 100644 --- a/src/library/par.rs +++ b/src/library/par.rs @@ -29,7 +29,10 @@ impl ParNode { impl Construct for ParNode { fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> { - // Lift to a block so that it doesn't merge with adjacent stuff. + // The paragraph constructor is special: It doesn't create a paragraph + // since that happens automatically through markup. Instead, it just + // lifts the passed body to the block level so that it won't merge with + // adjacent stuff and it styles the contained paragraphs. Ok(Node::Block(args.expect("body")?)) } } |
