Skip to content

Preserve prose tags across cheats - #85

Merged
Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/prose-tag-storage
Sep 30, 2026
Merged

Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/prose-tag-storage

Conversation

@echo8134

Copy link
Copy Markdown
Contributor

Summary

Parser slices shared spare capacity, so a later cheat could overwrite an earlier cheat's tags. Cap the cached slice before appending per-cheat tags.

Related issues

No linked issue.

Verification

The two-cheat regression test and the built CLI's dump output confirm that each cheat retains its tags.

Local checks passed on Go 1.27.1. The CI workflow uses Go 1.26.3.

Checklist

  • go build ./... and go test ./... pass
  • gofmt -l . and go vet ./... are clean
  • Added regression tests for the changed behavior
  • cheatmd --lint examples/ passes
  • Docs/wiki changes are not needed for this fix

@Gubarz
Gubarz marked this pull request as ready for review September 30, 2026 14:54
@Gubarz
Gubarz merged commit b86642a into cheatmd-dev:main Sep 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants