[][src]Function md2tex::title_string

pub fn title_string<R>(rdr: R) -> String where
    R: BufRead

Get the title of a Markdown file.

Reads the first line of a Markdown file, strips any hashes and leading/trailing whitespace, and returns the title. Source: https://codereview.stackexchange.com/questions/135013/rust-function-to-read-the-first-line-of-a-file-strip-leading-hashes-and-whitesp