Clear the markdown render cache (e.g. on session switch)
(&mut self)
| 49 | |
| 50 | /// Clear the markdown render cache (e.g. on session switch) |
| 51 | pub fn clear_cache(&mut self) { |
| 52 | self.cache.clear(); |
| 53 | } |
| 54 | |
| 55 | pub fn render(&self, markdown: &str, width: usize) -> Vec<Line<'static>> { |
| 56 | let mut lines = Vec::new(); |