Backport #16596
Set the TableOptions in markdown to allow alignment of the tables to work correctly
Fix #15959
Signed-off-by: Andrew Thornton <art27@cantab.net>
func actualRender(ctx *markup.RenderContext, input io.Reader, output io.Writer) error {
once.Do(func() {
converter = goldmark.New(
- goldmark.WithExtensions(extension.Table,
+ goldmark.WithExtensions(
+ extension.NewTable(
+ extension.WithTableCellAlignMethod(extension.TableCellAlignAttribute)),
extension.Strikethrough,
extension.TaskList,
extension.DefinitionList,