Merge pull request #314 from MarkRosemaker/common-sense-NewTableRow

NewTableRow: use given parameter
This commit is contained in:
Yusuke Inuzuka 2022-07-30 05:12:33 +09:00 committed by GitHub
commit 42509ee585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ func (n *TableRow) Kind() gast.NodeKind {
// NewTableRow returns a new TableRow node.
func NewTableRow(alignments []Alignment) *TableRow {
return &TableRow{}
return &TableRow{Alignments: alignments}
}
// A TableHeader struct represents a table header of Markdown(GFM) text.