mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 20:49:33 +08:00
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>
This commit is contained in:
parent
a17edf446f
commit
f9120092c1
@ -87,7 +87,9 @@ func newParserContext(ctx *markup.RenderContext) parser.Context {
|
|||||||
func actualRender(ctx *markup.RenderContext, input io.Reader, output io.Writer) error {
|
func actualRender(ctx *markup.RenderContext, input io.Reader, output io.Writer) error {
|
||||||
once.Do(func() {
|
once.Do(func() {
|
||||||
converter = goldmark.New(
|
converter = goldmark.New(
|
||||||
goldmark.WithExtensions(extension.Table,
|
goldmark.WithExtensions(
|
||||||
|
extension.NewTable(
|
||||||
|
extension.WithTableCellAlignMethod(extension.TableCellAlignAttribute)),
|
||||||
extension.Strikethrough,
|
extension.Strikethrough,
|
||||||
extension.TaskList,
|
extension.TaskList,
|
||||||
extension.DefinitionList,
|
extension.DefinitionList,
|
||||||
|
Loading…
Reference in New Issue
Block a user