Skip to main content

code_fence

Function code_fence 

Source
pub fn code_fence(language: &str, body: &str) -> String
Expand description

A fenced code block whose fence out-lengths every backtick run in body (docling-core’s _code_block, #859): three backticks, or one more than the longest run inside, so a body quoting a ``` fence cannot close the block early. language rides on the opening fence (empty for none).