Skip to content

Commit

Permalink
markdown: move to internal/markdown
Browse files Browse the repository at this point in the history
This package was not made internal in CL 218517 because it was
intended to be used by packages in golang.org/x/blog. However,
golang.org/x/blog ended up taking a different approach that did
not include using golang.org/x/website/markdown; see CL 222846.

Since there isn't a need for this package to be non-internal,
make it internal while it still has 0 known public importers,
to keep future maintenance costs down.

For golang/go#33637.

Change-Id: Ie31264fe14b5cc68d98adbf62d6b824f1df579fb
Reviewed-on: https://go-review.googlesource.com/c/website/+/228418
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
  • Loading branch information
MK825 committed Apr 17, 2020
1 parent 325a6f4 commit 5edc685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/static/internal/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"unicode"

"golang.org/x/website/markdown"
"golang.org/x/website/internal/markdown"
)

var files = []string{
Expand Down
3 changes: 1 addition & 2 deletions markdown/markdown.go → internal/markdown/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// license that can be found in the LICENSE file.

// Package markdown provides a wrapper for rendering Markdown. It is intended
// to be used by x/website and x/blog so that we can use the same renderer
// with the same settings.
// to be used on the golang.org website.
//
// This package is not intended for general use, and its API is not guaranteed
// to be stable.
Expand Down

0 comments on commit 5edc685

Please sign in to comment.