Skip to main content

doc_fence_len

Function doc_fence_len 

Source
pub fn doc_fence_len(doc: &str) -> usize
Expand description

#1885: the dash count of the fence a doc block holding doc is printed with: one more than the longest marker-shaped line in it (a line of three or more dashes alone, surrounding whitespace aside), and never fewer than three. A shorter fence would close at that line.