Skip to content

Commit 9ad9de4

Browse files
committed
internal/frontend: generate https autolinks by default
This is a departure in behavior from the old markdown parser but it's probably better to try https by default. Change-Id: I0f06eda5b48e87200cd72a95daa08f54ce932749 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/550295 kokoro-CI: kokoro <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent e7538de commit 9ad9de4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

internal/frontend/markdown.go

+6-7
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,12 @@ func processReadmeMarkdown(ctx context.Context, readme *internal.Readme, info *s
5050
}
5151

5252
p := markdown.Parser{
53-
HeadingIDs: true,
54-
Strikethrough: true,
55-
TaskListItems: true,
56-
AutoLinkText: true,
57-
AutoLinkAssumeHTTP: true,
58-
Table: true,
59-
Emoji: true,
53+
HeadingIDs: true,
54+
Strikethrough: true,
55+
TaskListItems: true,
56+
AutoLinkText: true,
57+
Table: true,
58+
Emoji: true,
6059
}
6160
doc := p.Parse(readme.Contents)
6261
(&linkRewriter{info, readme}).rewriteLinks(doc)

0 commit comments

Comments
 (0)