MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / render_new_html

Method render_new_html

atomic-core/src/diff/inline.rs:530–532  ·  view source on GitHub ↗

Render the new line with HTML highlighting. Returns HTML with ` ` tags for styling.

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls 1

render_with_htmlMethod · 0.80

Tested by 1