Skip to content

Markdown extensions option/setting #1480

@ncwgf

Description

@ncwgf

Gitea Version: 1.1.0+115-g54f0293f (docker image)

When I go to russross/blackfriday to check markdown syntax, just found gitea cannot use Definition lists

Term
: This is a term

I found that there are two usage of
markdown/markdown.go#L148
markdown/markdown.go#L159

if flags&blackfriday.LIST_TYPE_DEFINITION != 0 {

but markdown.go do not included EXTENSION_DEFINITION_LISTS at extension setup by default
and no way to enable it like EXTENSION_HARD_LINE_BREAK by checking
markdown/markdown.go#L619

setting.Markdown.EnableHardLineBreak

After checking code and compare extension list
https://github.com/russross/blackfriday/blob/master/markdown.go

There still have few extension not enabled
will there any way to let us config to enable them like EnableHardLineBreak? or
are there any concern to not let it enable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions