| 1 | {{ define "page" -}} |
| 2 | <div class="markdown-body shithub-editor-preview-body{{ if .DiffMode }} is-diff{{ end }}"> |
| 3 | {{ if .DiffMode }} |
| 4 | {{ range .DiffBlocks }} |
| 5 | <div class="shithub-editor-preview-diff-block is-{{ .Kind }}">{{ .HTML }}</div> |
| 6 | {{ else }} |
| 7 | <p class="shithub-editor-preview-empty">No preview changes.</p> |
| 8 | {{ end }} |
| 9 | {{ else }} |
| 10 | {{ .MarkdownHTML }} |
| 11 | {{ end }} |
| 12 | </div> |
| 13 | {{- end }} |