This changes partition_source so that instead of allocating new strings, it just returns slices into the original string. It probably doesn't make a big difference perf-wise, but I felt more comfortable with this, and also felt it was a little easier to understand exactly what it was doing. This is generally equivalent except for the possibility of not having a newline at the end. In practice that doesn't matter because markdown code blocks always have a newline. However, to be defensive, the caller will check for this. |
||
|---|---|---|
| .. | ||
| front-end | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
mdbook-html
This is the HTML renderer for mdBook. This is intended for internal use only. It is automatically included by mdbook-driver to render books to HTML.
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.