(filePath, content string)
| 374 | } |
| 375 | |
| 376 | func (opts *PreviewOptions) renderFile(filePath, content string) string { |
| 377 | if opts.RenderFile != nil { |
| 378 | return opts.RenderFile(filePath, content) |
| 379 | } |
| 380 | |
| 381 | return renderMarkdownPreview(opts.IO, filePath, content) |
| 382 | } |
| 383 | |
| 384 | func renderSelectedFilePreview(opts *PreviewOptions, filePath, content string) string { |
| 385 | if !isMarkdownFile(filePath) { |
no test coverage detected