mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
markup/goldmark: Change default cell alignment in table render hook
Change the default table cell alignment from "left" to an empty string. Closes #12886
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
d1ba52f3c3
commit
1158e63072
@@ -129,7 +129,7 @@ func (r *htmlRenderer) renderCell(w util.BufWriter, source []byte, node ast.Node
|
||||
case gast.AlignCenter:
|
||||
alignment = "center"
|
||||
default:
|
||||
alignment = "left"
|
||||
alignment = ""
|
||||
}
|
||||
|
||||
cell := hooks.TableCell{Text: hstring.HTML(text), Alignment: alignment}
|
||||
|
Reference in New Issue
Block a user