Skip to content

Commit

Permalink
Merge branch 'main' into review_remove-in-select
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Dec 20, 2023
2 parents 6d1f166 + e4a24d6 commit 1bb38f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/markup/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,9 @@ func fullIssuePatternProcessor(ctx *RenderContext, node *html.Node) {
}

func issueIndexPatternProcessor(ctx *RenderContext, node *html.Node) {
if ctx.Metas == nil || ctx.Metas["mode"] == "document" {
// FIXME: the use of "mode" is quite dirty and hacky, for example: what is a "document"? how should it be rendered?
// The "mode" approach should be refactored to some other more clear&reliable way.
if ctx.Metas == nil || (ctx.Metas["mode"] == "document" && !ctx.IsWiki) {
return
}
var (
Expand Down

0 comments on commit 1bb38f6

Please sign in to comment.