This adds the `ToUrlPath` helper trait to convert a Path to a path suitable for use in HTML (replacing `normalize_path`). This also fixes a minor bug where on Windows the next/prev links were using a double forward slash. I don't think this is possible, since chapter links are derived from the summary, but I'm noting just in case. It's also not too much of an issue since double slashes are normally just treated as a single. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
mdbook-core
This is the base support library for mdBook. It is intended for internal use only. Other mdBook crates depend on this for any types that are shared across the crates.
This crate is maintained by the mdBook team, primarily for use by mdBook and not intended for external use (except as a transitive dependency). This crate may make major changes to its APIs or be deprecated without warning.