Skip to main content

code_text

Function code_text 

Source
pub fn code_text(source: &str, language_name: &str) -> String
Expand description

The text a CodeBlock shows and copies: CRLF → LF and, for ansi, every escape removed. Port of codeText.