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. |
||
|---|---|---|
| .. | ||
| mdbook-core | ||
| mdbook-driver | ||
| mdbook-html | ||
| mdbook-markdown | ||
| mdbook-preprocessor | ||
| mdbook-renderer | ||
| mdbook-summary | ||