markup/goldmark: Default to https for linkify

Fixes #9639
This commit is contained in:
Bjørn Erik Pedersen
2022-03-09 18:26:32 +01:00
parent f98e570b17
commit 5697348e17
4 changed files with 105 additions and 19 deletions

View File

@@ -23,13 +23,14 @@ const (
// DefaultConfig holds the default Goldmark configuration.
var Default = Config{
Extensions: Extensions{
Typographer: true,
Footnote: true,
DefinitionList: true,
Table: true,
Strikethrough: true,
Linkify: true,
TaskList: true,
Typographer: true,
Footnote: true,
DefinitionList: true,
Table: true,
Strikethrough: true,
Linkify: true,
LinkifyProtocol: "https",
TaskList: true,
},
Renderer: Renderer{
Unsafe: false,
@@ -57,10 +58,11 @@ type Extensions struct {
DefinitionList bool
// GitHub flavored markdown
Table bool
Strikethrough bool
Linkify bool
TaskList bool
Table bool
Strikethrough bool
Linkify bool
LinkifyProtocol string
TaskList bool
}
type Renderer struct {