fix: properly set table alignments

This commit is contained in:
Maas Lalani
2024-03-06 15:52:11 +01:00
committed by Christian Muehlhaeuser
parent ba919abf98
commit 9e3abf6f65
2 changed files with 20 additions and 2 deletions
+2 -1
View File
@@ -295,7 +295,8 @@ func (tr *ANSIRenderer) NewElement(node ast.Node, source []byte) Element {
// Tables
case astext.KindTable:
te := &TableElement{}
table := node.(*astext.Table)
te := &TableElement{table: table}
return Element{
Entering: "\n",
Renderer: te,