feat: some stuff?
All checks were successful
Build and Push Server / build-and-push (push) Successful in 4m19s

This commit is contained in:
2026-02-10 18:24:39 +01:00
parent 137e3da6d4
commit f9c4b7bc05
7 changed files with 26 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ package matcher
import (
"math"
"strings"
"git.max-richter.dev/max/marka/parser/utils"
"git.max-richter.dev/max/marka/template"
@@ -20,7 +21,7 @@ func (m Block) GetContent() string {
if m.src == nil || m.Start < 0 || m.End > len(*m.src) || m.Start > m.End {
return ""
}
return (*m.src)[m.Start:m.End]
return strings.TrimSpace((*m.src)[m.Start:m.End])
}
// MatchBlocksFuzzy finds anchor positions for all BlockMatching blocks using