mirror of
https://github.com/ZeroHawkeye/wordZero.git
synced 2026-04-22 23:57:30 +08:00
Fix Go 1.19+ compatibility: Remove Go 1.22 syntax and downgrade goldmark (#87)
* Initial plan * Fix Go 1.22 syntax for backward compatibility with Go 1.19+ Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com> * Downgrade goldmark to v1.7.8 for Go 1.19+ compatibility Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com> * Remove backup file --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ZeroHawkeye <161401688+ZeroHawkeye@users.noreply.github.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
module github.com/ZeroHawkeye/wordZero
|
||||
|
||||
go 1.22
|
||||
go 1.19
|
||||
|
||||
toolchain go1.24.2
|
||||
toolchain go1.24.11
|
||||
|
||||
require github.com/yuin/goldmark v1.7.12
|
||||
require github.com/yuin/goldmark v1.7.8
|
||||
|
||||
require github.com/litao91/goldmark-mathjax v0.0.0-20210217064022-a43cf739a50f
|
||||
|
||||
@@ -8,8 +8,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
|
||||
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.7.12 h1:YwGP/rrea2/CnCtUHgjuolG/PnMxdQtPMO5PvaE2/nY=
|
||||
github.com/yuin/goldmark v1.7.12/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg=
|
||||
github.com/yuin/goldmark v1.7.8 h1:iERMLn0/QJeHFhxSt3p6PeN9mGnvIKSpG9YYorDMnic=
|
||||
github.com/yuin/goldmark v1.7.8/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
|
||||
@@ -256,7 +256,7 @@ func (w *MarkdownWriter) writeTable(table *document.Table) error {
|
||||
|
||||
// 写分隔行
|
||||
w.output.WriteString("|")
|
||||
for range headerRow.Cells {
|
||||
for i := 0; i < len(headerRow.Cells); i++ {
|
||||
w.output.WriteString("-----|")
|
||||
}
|
||||
w.output.WriteString("\n")
|
||||
|
||||
Reference in New Issue
Block a user