pub fn get_basedir_from(filename: &Path) -> PathBuf
Get the base directory given the name of the markdown file.
All relative filename, such as bindings files, are resolved against the base directory.