-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be nice if fundoc could also keep indent when no comment prefix is used. I prefer using comment blocks without prefix as for me they are cleaner to read and write.
This could be implemented by trimming the lines by the indent of the first comment line. (In the example below this would be 4 spaces prepending @Article Struct).
I'm not sure if there are edge cases I haven't thought of, it could also be optional with a setting.
impl Struct {
/**
@Article Struct
## function
Example:
```rust
fn main() {
// call function
function();
}
```
*/
fn function() { }
}Would result in:
## function
Example:
```rust
fn main() {
// call function
function();
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request