@@ -29,12 +29,7 @@ const (
2929
3030type RenderContentMode string
3131
32- const (
33- RenderContentAsDefault RenderContentMode = "" // empty means "default", no special handling, maybe just a simple "document"
34- RenderContentAsComment RenderContentMode = "comment"
35- RenderContentAsTitle RenderContentMode = "title"
36- RenderContentAsWiki RenderContentMode = "wiki"
37- )
32+ const RenderContentAsWiki RenderContentMode = "wiki"
3833
3934var RenderBehaviorForTesting struct {
4035 // Markdown line break rendering has 2 default behaviors:
@@ -59,12 +54,16 @@ type RenderContext struct {
5954 // for file mode, it could be left as empty, and will be detected by file extension in RelativePath
6055 MarkupType string
6156
62- // what the content will be used for: eg: for comment or for wiki? or just render a file ?
57+ // what the content will be used for: eg: for wiki?
6358 ContentMode RenderContentMode
6459
65- Links Links // special link references for rendering, especially when there is a branch/tree path
66- Metas map [string ]string // user&repo, format&style®exp (for external issue pattern), teams&org (for mention), BranchNameSubURL(for iframe&asciicast)
67- DefaultLink string // TODO: need to figure out
60+ Links Links // special link references for rendering, especially when there is a branch/tree path
61+
62+ // user&repo, format&style®exp (for external issue pattern), teams&org (for mention), BranchNameSubURL(for iframe&asciicast)
63+ // markdownLineBreakStyle(comment or document)
64+ Metas map [string ]string
65+
66+ DefaultLink string // TODO: need to figure out
6867 GitRepo * git.Repository
6968 Repo gitrepo.Repository
7069 ShaExistCache map [string ]bool
0 commit comments