It looks like the original author of this function intended to do a bounds check
on the line variable before checking if it has the `### ` prefix. Instead, we can
just use `strings.HasPrefix` which also means that shorter lines are now
included in the output.
Co-authored-by: Remo Senekowitsch <remo.senekowitsch@icloud.com>