This commit is contained in:
Christoph K.
2026-03-12 17:34:49 +01:00
parent fa5c15b607
commit 92f520101a
5 changed files with 180 additions and 32 deletions

View File

@@ -143,7 +143,7 @@ func splitByHeadings(text string) []string {
var sections []string
var current strings.Builder
for _, line := range lines {
if strings.HasPrefix(line, "# ") || strings.HasPrefix(line, "## ") {
if strings.HasPrefix(line, "# ") || strings.HasPrefix(line, "## ") || strings.HasPrefix(line, "### ") {
if current.Len() > 0 {
sections = append(sections, current.String())
current.Reset()