mirror of
https://github.com/sajari/docconv.git
synced 2026-10-16 21:21:59 +08:00
6b8d2b5d66
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>