(language: Option<String>, code: String)
| 13 | |
| 14 | impl CodeBlock { |
| 15 | pub fn new(language: Option<String>, code: String) -> Self { |
| 16 | Self { language, code } |
| 17 | } |
| 18 | |
| 19 | pub fn to_lines(&self, theme: &CodeTheme) -> Vec<Vec<Span<'static>>> { |
| 20 | if let Some(lines) = syntax::highlight_code( |
nothing calls this directly
no outgoing calls
no test coverage detected