Render the new line with HTML highlighting. Returns HTML with ` ` tags for styling.
(&self)
| 528 | /// |
| 529 | /// Returns HTML with `<span>` tags for styling. |
| 530 | pub fn render_new_html(&self) -> String { |
| 531 | self.render_with_html(self.new_content, &self.new_hunks, "inserted") |
| 532 | } |
| 533 | |
| 534 | /// Internal helper to render content with HTML. |
| 535 | fn render_with_html(&self, content: &[u8], hunks: &[ChangeHunk], class: &str) -> String { |