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