The current doc-generation code looks like:
https://github.com/lumol-org/soa-derive/blob/d16585c/soa-derive-internal/src/vec.rs#L54-L56
As a result, it introduces extra spaces due to markdown translating newlines to spaces:
http://lumol.org/soa-derive/soa_derive_example/struct.ParticleVec.html#impl-2

With rust-lang/rust#78837 I think a bit of extra magic can be used here to generate the entire part inside of the square brackets.
The current doc-generation code looks like:
https://github.com/lumol-org/soa-derive/blob/d16585c/soa-derive-internal/src/vec.rs#L54-L56
As a result, it introduces extra spaces due to markdown translating newlines to spaces:
With rust-lang/rust#78837 I think a bit of extra magic can be used here to generate the entire part inside of the square brackets.