MCPcopy Create free account
hub / github.com/bytesnake/vim-graphical-preview / parse_latex_from_file

Function parse_latex_from_file

src/utils.rs:213–222  ·  view source on GitHub ↗
(
    path: &Path,
)

Source from the content-addressed store, hash-verified

211}
212
213pub fn parse_latex_from_file(
214 path: &Path,
215) -> Result<PathBuf> {
216 let mut content = String::new();
217 let mut f = File::open(path)
218 .map_err(Error::Io)?;
219 f.read_to_string(&mut content).unwrap();
220
221 parse_latex(&content)
222}

Callers 1

generateMethod · 0.85

Calls 1

parse_latexFunction · 0.85

Tested by

no test coverage detected