LongDesc normalizes a command's long description to follow the conventions.
(s string)
| 28 | |
| 29 | // LongDesc normalizes a command's long description to follow the conventions. |
| 30 | func LongDesc(s string) string { |
| 31 | if len(s) == 0 { |
| 32 | return s |
| 33 | } |
| 34 | return normalizer{s}.heredoc().markdown().trim().string |
| 35 | } |
| 36 | |
| 37 | // Examples normalizes a command's examples to follow the conventions. |
| 38 | func Examples(s string) string { |
searching dependent graphs…