refactor(exporters): replace deprecated strings.Title with cases.Title

The `strings.Title` function is deprecated because it does not handle Unicode punctuation correctly.

This change replaces its usage in the DOCX, HTML, and Markdown exporters with the recommended `golang.org/x/text/cases` package. This ensures more robust and accurate title-casing for item headings.
This commit is contained in:
2025-11-06 03:55:07 +01:00
parent 59f2de9d22
commit 6317ce268b
5 changed files with 18 additions and 4 deletions

5
go.mod
View File

@ -2,7 +2,10 @@ module github.com/kjanat/articulate-parser
go 1.24.0
require github.com/fumiama/go-docx v0.0.0-20250506085032-0c30fd09304b
require (
github.com/fumiama/go-docx v0.0.0-20250506085032-0c30fd09304b
golang.org/x/text v0.30.0
)
require (
github.com/fumiama/imgsz v0.0.4 // indirect