mdbook-bib 0.5.3

mdbook plugin allowing to load and present a bibliography in BibLaTex format in your books and cite its references
Documentation
1
2
3
4
5
6
7
use std::ffi::OsStr;
use std::path::Path;

/// Get filename extension
pub fn get_filename_extension(filename: &Path) -> Option<&str> {
    filename.extension().and_then(OsStr::to_str)
}