diff --git a/internal/builtin/content_table.go b/internal/builtin/content_table.go index 525d28b2..50e903a0 100644 --- a/internal/builtin/content_table.go +++ b/internal/builtin/content_table.go @@ -135,7 +135,7 @@ func renderTableContent(headers, values []tableCellTmpl, datactx plugin.MapData) buf.WriteByte('\n') buf.WriteByte('|') for range hstr { - buf.WriteString("-") + buf.WriteString("---") buf.WriteByte('|') } buf.WriteByte('\n') diff --git a/internal/builtin/content_table_test.go b/internal/builtin/content_table_test.go index 59d2de32..8e7f72de 100644 --- a/internal/builtin/content_table_test.go +++ b/internal/builtin/content_table_test.go @@ -58,7 +58,7 @@ func (s *TableGeneratorTestSuite) TestNilQueryResult() { }, }) s.Equal(&plugin.Content{ - Markdown: "|User Name|User Age|\n|-|-|\n", + Markdown: "|User Name|User Age|\n|---|---|\n", }, content) s.Nil(diags) } @@ -85,7 +85,7 @@ func (s *TableGeneratorTestSuite) TestEmptyQueryResult() { }, }) s.Equal(&plugin.Content{ - Markdown: "|User Name|User Age|\n|-|-|\n", + Markdown: "|User Name|User Age|\n|---|---|\n", }, content) s.Nil(diags) } @@ -121,7 +121,7 @@ func (s *TableGeneratorTestSuite) TestBasic() { }, }) s.Equal(&plugin.Content{ - Markdown: "|User Name|User Age|\n|-|-|\n|John|42|\n|Jane|43|\n", + Markdown: "|User Name|User Age|\n|---|---|\n|John|42|\n|Jane|43|\n", }, content) s.Nil(diags) }