mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-31 08:37:35 -04:00
27757714d0
* Move to goldmark Markdown rendering moved from blackfriday to the goldmark. Multiple subtle changes required to the goldmark extensions to keep current rendering and defaults. Can go further with goldmark linkify and have this work within markdown rendering making the link processor unnecessary. Need to think about how to go about allowing extensions - at present it seems that these would be hard to do without recompilation. * linter fixes Co-authored-by: Lauris BH <lauris@nix.lv>
19 lines
304 B
Go
Vendored
19 lines
304 B
Go
Vendored
package extension
|
|
|
|
import (
|
|
"github.com/yuin/goldmark"
|
|
)
|
|
|
|
type gfm struct {
|
|
}
|
|
|
|
// GFM is an extension that provides Github Flavored markdown functionalities.
|
|
var GFM = &gfm{}
|
|
|
|
func (e *gfm) Extend(m goldmark.Markdown) {
|
|
Linkify.Extend(m)
|
|
Table.Extend(m)
|
|
Strikethrough.Extend(m)
|
|
TaskList.Extend(m)
|
|
}
|