Skip to main content

split_explicit_title

Function split_explicit_title 

Source
pub fn split_explicit_title(entry: &str) -> Option<(&str, &str)>
Expand description

Split Some Title <target> into its two halves, as Sphinx’s explicit_title_re (^(.+?)\s*<(.*?)>$, util/nodes.py) does: the first < that leaves a non-empty title wins, and the line must end with >. A bare <foo> is therefore a literal target named <foo>, not an empty-titled reference.