Skip to main content

runs_of_prose

Function runs_of_prose 

Source
pub fn runs_of_prose(content: &str) -> Vec<Run>
Expand description

As runs, of what is Markdown proper (an article, NIP-23): a line break in a paragraph is a space there, and not the end of a line. One stays a line break after a line that ends in two spaces or in a \, which is how such a text asks for one, and on either side of a heading, a quote, an item of a list, and an empty line.