diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-09 18:26:32 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-09 22:30:10 +0100 |
commit | 5697348e1732a5f64ee7467283eb0335f2ec36e8 (patch) | |
tree | af121a9de0890e66f9edde46fd4f084a750b3f6f /markup/goldmark/goldmark_config/config.go | |
parent | f98e570b17d99e0ca7a6e6792a4c741cfc8b81e8 (diff) |
markup/goldmark: Default to https for linkify
Fixes #9639
Diffstat (limited to 'markup/goldmark/goldmark_config/config.go')
-rw-r--r-- | markup/goldmark/goldmark_config/config.go | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/markup/goldmark/goldmark_config/config.go b/markup/goldmark/goldmark_config/config.go index 82b8d9630..a3238091b 100644 --- a/markup/goldmark/goldmark_config/config.go +++ b/markup/goldmark/goldmark_config/config.go @@ -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 { |