feat: added keyword codec (partially works)

This commit is contained in:
2025-08-19 19:06:08 +02:00
parent 210b31aef8
commit 69c2550f44
24 changed files with 964 additions and 80 deletions

View File

@@ -32,7 +32,7 @@ func MatchBlocksFuzzy(markdown string, templateBlocks []template.Block, maxDist
lastIndex := 0
for i, b := range templateBlocks {
if b.Type == template.MatchingBlock {
start, end := FuzzyFind(markdown, lastIndex, b.GetContent(), 0.3)
start, end := FuzzyFind(markdown, lastIndex, b.GetContent(), 0.2)
if end != -1 {
if i > 0 {
previousBlock := templateBlocks[i-1]