max-heller / mdbook-pandoc

A mdbook backend powered by Pandoc.
Apache License 2.0
97 stars 7 forks source link

fix(windows): normalize paths with `normpath` instead of `std::fs::canonicalize()` #84

Closed max-heller closed 5 months ago

max-heller commented 5 months ago

On Windows, std::fs::canonicalize() produces a weird type of path that cannot be used with Command::current_dir(). This switches to using the normpath crate, which should avoid these issues.