// Copyright 2022 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package math import ( "html/template" "code.gitea.io/gitea/modules/markup/internal" giteaUtil "code.gitea.io/gitea/modules/util" gast "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/renderer" "github.com/yuin/goldmark/util" ) // Block render output: //
......`) + ``
		_ = r.renderInternal.FormatWithSafeAttrs(w, template.HTML(code))
		r.writeLines(w, source, n)
	} else {
		_, _ = w.WriteString(`` + giteaUtil.Iif(n.Inline, "", ``) + "\n")
	}
	return gast.WalkContinue, nil
}