Skip to main content

extract_code

Function extract_code 

Source
pub fn extract_code(raw: &str, language: &str) -> String
Expand description

Extract clean code from an LLM response that may contain markdown fences.