Debian Codegraph @

CHANGELOG.md

raw
1 # Changelog
2
3 ## mdBook 0.5.4
4 [v0.5.3...v0.5.4](https://github.com/rust-lang/mdBook/compare/v0.5.3...v0.5.4)
5
6 ### Added
7
8 - Added zoomable images feature.
9 [#3127](https://github.com/rust-lang/mdBook/pull/3127)
10
11 ### Changed
12
13 - Updated dependencies.
14 [#3149](https://github.com/rust-lang/mdBook/pull/3149)
15 [#3152](https://github.com/rust-lang/mdBook/pull/3152)
16 [#3129](https://github.com/rust-lang/mdBook/pull/3129)
17 [#3130](https://github.com/rust-lang/mdBook/pull/3130)
18
19 ### Fixed
20
21 - Fixed layout bug with images in links.
22 [#3142](https://github.com/rust-lang/mdBook/pull/3142)
23 - Fixed previous-chapter nav hover overlapping sidebar resize handle.
24 [#3134](https://github.com/rust-lang/mdBook/pull/3134)
25 - Fixed missing LICENSE files in published crates.
26 [#3135](https://github.com/rust-lang/mdBook/pull/3135)
27 - Switched recommendation to linkcheck2 fork.
28 [#3132](https://github.com/rust-lang/mdBook/pull/3132)
29 - Fixed version in CI source install docs.
30 [#3154](https://github.com/rust-lang/mdBook/pull/3154)
31
32 ## mdBook 0.5.3
33 [v0.5.2...v0.5.3](https://github.com/rust-lang/mdBook/compare/v0.5.2...v0.5.3)
34
35 ### Changed
36
37 - Improve spacing in sidebar section headings.
38 [#3122](https://github.com/rust-lang/mdBook/pull/3122)
39 - Updated cargo dependencies.
40 [#3083](https://github.com/rust-lang/mdBook/pull/3083)
41 [#3077](https://github.com/rust-lang/mdBook/pull/3077)
42 [#3058](https://github.com/rust-lang/mdBook/pull/3058)
43 [#3057](https://github.com/rust-lang/mdBook/pull/3057)
44 [#3042](https://github.com/rust-lang/mdBook/pull/3042)
45 [#3045](https://github.com/rust-lang/mdBook/pull/3045)
46 [#3044](https://github.com/rust-lang/mdBook/pull/3044)
47 [#3036](https://github.com/rust-lang/mdBook/pull/3036)
48 [#3022](https://github.com/rust-lang/mdBook/pull/3022)
49 [#3017](https://github.com/rust-lang/mdBook/pull/3017)
50 [#3018](https://github.com/rust-lang/mdBook/pull/3018)
51 [#3019](https://github.com/rust-lang/mdBook/pull/3019)
52 [#2998](https://github.com/rust-lang/mdBook/pull/2998)
53 [#2996](https://github.com/rust-lang/mdBook/pull/2996)
54
55 ### Fixed
56
57 - The "current" page highlighting in the sidebar now handles servers that redirect and strip the `.html` extension.
58 [#3028](https://github.com/rust-lang/mdBook/pull/3028)
59 - Remove `?highlight=` from URL when highlights are dismissed via clicking.
60 [#3084](https://github.com/rust-lang/mdBook/pull/3084)
61 - Fix global keypresses triggering when other elements are in focus.
62 [#3087](https://github.com/rust-lang/mdBook/pull/3087)
63 - Fix download URL format for mdBook in CI guide.
64 [#3073](https://github.com/rust-lang/mdBook/pull/3073)
65 - Improve error message for invalid Font Awesome icons.
66 [#3037](https://github.com/rust-lang/mdBook/pull/3037)
67 - Fix nested admonitions that use wrong header colors.
68 [#3035](https://github.com/rust-lang/mdBook/pull/3035)
69
70 ## mdBook 0.5.2
71 [v0.5.1...v0.5.2](https://github.com/rust-lang/mdBook/compare/v0.5.1...v0.5.2)
72
73 ### Changed
74
75 - Updated Rust crate html5ever to 0.36.0.
76 [#2970](https://github.com/rust-lang/mdBook/pull/2970)
77 - Updated cargo dependencies.
78 [#2969](https://github.com/rust-lang/mdBook/pull/2969)
79
80 ### Fixed
81
82 - Fixed repeated error message when HTML config is invalid in `mdbook serve`.
83 [#2983](https://github.com/rust-lang/mdBook/pull/2983)
84 - Fixed sidebar scroll position when heading nav is involved.
85 [#2982](https://github.com/rust-lang/mdBook/pull/2982)
86 - Fixed color for rustdoc error messages.
87 [#2981](https://github.com/rust-lang/mdBook/pull/2981)
88 - Fixed usage of custom preprocessors with `MDBook::test`.
89 [#2980](https://github.com/rust-lang/mdBook/pull/2980)
90
91 ## mdBook 0.5.1
92 [v0.5.0...v0.5.1](https://github.com/rust-lang/mdBook/compare/v0.5.0...v0.5.1)
93
94 ### Changed
95 - Changed the scrollbar background to be transparent.
96 [#2932](https://github.com/rust-lang/mdBook/pull/2932)
97 - Ignore invalid top-level environment variable config keys. This allows setting things like `MDBOOK_VERSION` to not cause an error.
98 [#2952](https://github.com/rust-lang/mdBook/pull/2952)
99
100 ### Fixed
101 - Fixed the sidebar heading nav to have the correct nesting levels.
102 [#2953](https://github.com/rust-lang/mdBook/pull/2953)
103 - Various Font Awesome fixes and improvements.
104 [#2951](https://github.com/rust-lang/mdBook/pull/2951)
105
106 ## mdBook 0.5.0
107 [v0.4.52...v0.5.0](https://github.com/rust-lang/mdBook/compare/v0.4.52...v0.5.0)
108
109 The 0.5.0 release is the next major release of mdBook, containing over 130 PRs since 0.4.52! The primary focus for this release has been an evolution of the Rust APIs to make it easier to maintain, to evolve in a backwards-compatible fashion, to clean up some things that have accumulated over time, and to significantly improve the performance and compile-times.
110
111 This release also includes many new features described below.
112
113 We have prepared a [0.5 Migration Guide](#05-migration-guide) to help existing authors switch from 0.4.
114
115 The final 0.5.0 release only contains the following changes since [0.5.0-beta.2](#mdbook-050-beta2):
116
117 - Added error handling to environment config handling. This checks that environment variables starting with `MDBOOK_` are correctly specified instead of silently ignoring. This also fixed being able to replace entire top-level tables like `MDBOOK_OUTPUT`.
118 [#2942](https://github.com/rust-lang/mdBook/pull/2942)
119
120 ## 0.5 Migration Guide
121
122 The 0.5 release contains several breaking changes from the 0.4 release. Preprocessors and renderers will need to be migrated to continue to work with this release. After updating your configuration, it is recommended to carefully compare and review how your book renders to ensure everything is working correctly.
123
124 If you have overridden any of the theme files, you will likely need to update them to match the current version.
125
126 See the entries below for [mdBook 0.5.0-alpha.1](#mdbook-050-alpha1), [mdBook 0.5.0-beta.1](#mdbook-050-beta1), and [mdBook 0.5.0-beta.2](#mdbook-050-beta2) for a more complete list of changes and fixes.
127
128 The following is a summary of the changes that may require your attention when updating to 0.5:
129
130 ### Major additions
131
132 - Added sidebar heading navigation. This includes the `output.html.sidebar-header-nav` option to disable it.
133 [#2822](https://github.com/rust-lang/mdBook/pull/2822)
134 - Added support for definition lists. These are enabled by default, with the option `output.html.definition-lists` to disable it. See [docs](https://rust-lang.github.io/mdBook/format/markdown.html#definition-lists) for more.
135 [#2847](https://github.com/rust-lang/mdBook/pull/2847)
136 - Added support for admonitions. These are enabled by default, with the option `output.html.admonitions` to disable it. See [docs](https://rust-lang.github.io/mdBook/format/markdown.html#admonitions) for more.
137 [#2851](https://github.com/rust-lang/mdBook/pull/2851)
138 - Links on the print page now link to elements on the print page instead of linking out to the individual chapters.
139 [#2844](https://github.com/rust-lang/mdBook/pull/2844)
140
141 ### Config changes
142
143 - Unknown fields in config are now an error.
144 [#2787](https://github.com/rust-lang/mdBook/pull/2787)
145 [#2801](https://github.com/rust-lang/mdBook/pull/2801)
146 - Removed `curly-quotes`, use `output.html.smart-punctuation` instead.
147 [#2788](https://github.com/rust-lang/mdBook/pull/2788)
148 - Removed `output.html.copy-fonts`. The default fonts are now always copied unless you override the `theme/fonts/fonts.css` file.
149 [#2790](https://github.com/rust-lang/mdBook/pull/2790)
150 - If the `command` path for a renderer or preprocessor is relative, it is now always relative to the book root.
151 [#2792](https://github.com/rust-lang/mdBook/pull/2792)
152 [#2796](https://github.com/rust-lang/mdBook/pull/2796)
153 - Added the `optional` field for preprocessors. The default is `false`, so this also means it is an error by default if the preprocessor is missing.
154 [#2797](https://github.com/rust-lang/mdBook/pull/2797)
155 - `output.html.smart-punctuation` is now `true` by default.
156 [#2810](https://github.com/rust-lang/mdBook/pull/2810)
157 - `output.html.hash-files` is now `true` by default.
158 [#2820](https://github.com/rust-lang/mdBook/pull/2820)
159 - Removed support for google-analytics. Use a theme extension (like `head.hbs`) if you need to continue to support this.
160 [#2776](https://github.com/rust-lang/mdBook/pull/2776)
161 - Removed the `book.multilingual` field. This was never used.
162 [#2775](https://github.com/rust-lang/mdBook/pull/2775)
163 - Removed the very old legacy config support. Warnings have been displayed in previous versions on how to migrate.
164 [#2783](https://github.com/rust-lang/mdBook/pull/2783)
165 - Top-level config values set from the environment like `MDBOOK_BOOK` now *replace* the contents of the top-level table instead of merging into it.
166 [#2942](https://github.com/rust-lang/mdBook/pull/2942)
167 - Invalid environment variables are now rejected. Previously unknown keys like `MDBOOK_FOO` would be ignored, or keys or invalid values inside objects like the `[book]` table would be ignored.
168 [#2942](https://github.com/rust-lang/mdBook/pull/2942)
169
170 ### Theme changes
171
172 - Replaced the `{{#previous}}` and `{{#next}}` handlebars helpers with simple objects that contain the previous and next values.
173 [#2794](https://github.com/rust-lang/mdBook/pull/2794)
174 - Removed the `{{theme_option}}` handlebars helper. It has not been used for a while.
175 [#2795](https://github.com/rust-lang/mdBook/pull/2795)
176
177 ### Rendering changes
178
179 - Updated to a newer version of `pulldown-cmark`. This brings a large number of fixes to markdown processing.
180 [#2401](https://github.com/rust-lang/mdBook/pull/2401)
181 - The font-awesome font is no longer loaded as a font. Instead, the corresponding SVG is embedded in the output for the corresponding `<i>` tags. Additionally, a handlebars helper has been added for the `hbs` files. This also updates the version from 4.7.0 to 6.2.0, which means some of the icon names and styles have changed. Most of the free icons are in the "solid" set. See the [free icon set](https://fontawesome.com/v6/search) for the available icons.
182 [#1330](https://github.com/rust-lang/mdBook/pull/1330)
183 - Changed all internal HTML IDs to have an `mdbook-` prefix. This helps avoid namespace conflicts with header IDs.
184 [#2808](https://github.com/rust-lang/mdBook/pull/2808)
185 - There is a new internal HTML rendering pipeline. This is primarily intended to give mdBook more flexibility in generating its HTML output. This resulted in some small changes to the HTML structure. HTML parsing may now be more strict than before.
186 [#2844](https://github.com/rust-lang/mdBook/pull/2844)
187 - Links on the print page now link to elements on the print page instead of linking out to the individual chapters.
188 [#2844](https://github.com/rust-lang/mdBook/pull/2844)
189 - Added support for definition lists. These are enabled by default, with the option `output.html.definition-lists` to disable it.
190 [#2847](https://github.com/rust-lang/mdBook/pull/2847)
191 - Added support for admonitions. These are enabled by default, with the option `output.html.admonitions` to disable it.
192 [#2851](https://github.com/rust-lang/mdBook/pull/2851)
193 - Header ID generation has some minor changes to bring the ID generation closer to other tools and sites:
194 - IDs now use Unicode lowercase instead of ASCII lowercase.
195 [#2922](https://github.com/rust-lang/mdBook/pull/2922)
196 - Headers that start or end with HTML characters like `<`, `&`, or `>` now replace those characters in the link ID with `-` instead of being stripped.
197 [#2844](https://github.com/rust-lang/mdBook/pull/2844)
198 - Headers are no longer modified if the tag is manually written HTML.
199 [#2913](https://github.com/rust-lang/mdBook/pull/2913)
200
201 ### CLI changes
202
203 - Removed the `--dest-dir` option to `mdbook test`. It was unused since `mdbook test` does not generate output.
204 [#2805](https://github.com/rust-lang/mdBook/pull/2805)
205 - Changed CLI `--dest-dir` to be relative to the current directory, not the book root.
206 [#2806](https://github.com/rust-lang/mdBook/pull/2806)
207
208 ### Rust API
209
210 - The Rust API has been split into several crates ([#2766](https://github.com/rust-lang/mdBook/pull/2766)). In summary, the different crates are:
211 - `mdbook` — The CLI binary.
212 - [`mdbook-driver`](https://docs.rs/mdbook-driver/latest/mdbook_driver/) — The high-level library for running mdBook, primarily through the `MDBook` type. If you are driving mdBook programmatically, this is the crate you want.
213 - [`mdbook-preprocessor`](https://docs.rs/mdbook-preprocessor/latest/mdbook_preprocessor/) — Support for implementing preprocessors. If you have a preprocessor, then this is the crate you should depend on.
214 - [`mdbook-renderer`](https://docs.rs/mdbook-renderer/latest/mdbook_renderer/) — Support for implementing renderers. If you have a custom renderer, this is the crate you should depend on.
215 - [`mdbook-markdown`](https://docs.rs/mdbook-markdown/latest/mdbook_markdown/) — The Markdown renderer. If you are processing markdown, this is the crate you should depend on. This is essentially a thin wrapper around `pulldown-cmark`, and re-exports that crate so that you can ensure the version stays in sync with mdBook.
216 - [`mdbook-summary`](https://docs.rs/mdbook-summary/latest/mdbook_summary/) — The `SUMMARY.md` parser.
217 - [`mdbook-html`](https://docs.rs/mdbook-html/latest/mdbook_html/) — The HTML renderer.
218 - [`mdbook-core`](https://docs.rs/mdbook-core/latest/mdbook_core/) — An internal library that is used by the other crates for shared types. You should not depend on this crate directly since types from this crate are re-exported from the other crates as appropriate.
219 - Changes to `Config`:
220 - [`Config::get`](https://docs.rs/mdbook-core/latest/mdbook_core/config/struct.Config.html#method.get) is now generic over the return value, using `serde` to deserialize the value. It also returns a `Result` to handle deserialization errors. [#2773](https://github.com/rust-lang/mdBook/pull/2773)
221 - [`Config::set`](https://docs.rs/mdbook-core/latest/mdbook_core/config/struct.Config.html#method.set) now validates that the config keys and values are valid.
222 [#2942](https://github.com/rust-lang/mdBook/pull/2942)
223 - [`Config::update_from_env`](https://docs.rs/mdbook-core/latest/mdbook_core/config/struct.Config.html#method.update_from_env) now returns a `Result` to indicate any errors.
224 [#2942](https://github.com/rust-lang/mdBook/pull/2942)
225 - Removed `Config::get_deserialized`. Use `Config::get` instead.
226 - Removed `Config::get_deserialized_opt`. Use `Config::get` instead.
227 - Removed `Config::get_mut`. Use `Config::set` instead.
228 - Removed deprecated `Config::get_deserialized_opt`. Use `Config::get` instead.
229 - Removed `Config::get_renderer`. Use `Config::get` instead.
230 - Removed `Config::get_preprocessor`. Use `Config::get` instead.
231 - Public types have been switch to use the `#[non_exhaustive]` attribute to help allow them to change in a backwards-compatible way.
232 [#2779](https://github.com/rust-lang/mdBook/pull/2779)
233 [#2823](https://github.com/rust-lang/mdBook/pull/2823)
234 - Changed `MDBook` `with_renderer`/`with_preprocessor` to overwrite the entry if an extension of the same name is already loaded. This allows the caller to replace an entry.
235 [#2802](https://github.com/rust-lang/mdBook/pull/2802)
236 - Added `MarkdownOptions` struct to specify settings for markdown rendering for `mdbook_markdown::new_cmark_parser`.
237 [#2809](https://github.cocm/rust-lang/mdBook/pull/2809)
238 - Renamed `Book::sections` to `Book::items`.
239 [#2813](https://github.com/rust-lang/mdBook/pull/2813)
240 - `mdbook::book::load_book` is now private. Instead, use one of the `MDBook` load functions like `MDBook::load_with_config`.
241 - Removed `HtmlConfig::smart_punctuation` method, use the field of the same name.
242 - `CmdPreprocessor::parse_input` moved to `mdbook_preprocessor::parse_input`.
243 - `Preprocessor::supports_renderer` now returns a `Result<bool>` instead of `bool` to be able to handle errors.
244 - Most of the types from the `theme` module are now private. The `Theme` struct is still exposed for working with themes.
245 - Various functions in the `utils::fs` module have been removed, renamed, or reworked.
246 - Most of the functions in the `utils` module have been moved, removed, or made private.
247
248 ## mdBook 0.5.0-beta.2
249 [v0.5.0-beta.1...v0.5.0-beta.2](https://github.com/rust-lang/mdBook/compare/v0.5.0-beta.1...v0.5.0-beta.2)
250
251 ### Added
252
253 - Added a warning when a Font Awesome icon is missing.
254 [#2915](https://github.com/rust-lang/mdBook/pull/2915)
255 - Added some trace logging for event processing.
256 [#2911](https://github.com/rust-lang/mdBook/pull/2911)
257 - Added `Config::contains_key`.
258 [#2910](https://github.com/rust-lang/mdBook/pull/2910)
259
260 ### Changed
261
262 - Heading IDs are now lowercase.
263 [#2922](https://github.com/rust-lang/mdBook/pull/2922)
264 - Updated cargo dependencies.
265 [#2916](https://github.com/rust-lang/mdBook/pull/2916)
266 - Removed italics for in quotes/comments in code blocks with the `ayu` theme.
267 [#2904](https://github.com/rust-lang/mdBook/pull/2904)
268 - Exposed "search" feature from mdbook-driver.
269 [#2907](https://github.com/rust-lang/mdBook/pull/2907)
270
271 ### Fixed
272
273 - Fixed rust fenced code blocks with an indent.
274 [#2905](https://github.com/rust-lang/mdBook/pull/2905)
275 - Headers and `dt` tags are no longer modified if the tag is manually written HTML.
276 [#2913](https://github.com/rust-lang/mdBook/pull/2913)
277 - Fixed print page links for internal links to non-chapters.
278 [#2914](https://github.com/rust-lang/mdBook/pull/2914)
279 - Better handling for unbalanced HTML tags.
280 [#2924](https://github.com/rust-lang/mdBook/pull/2924)
281 - Handle unclosed HTML tags inside a markdown element.
282 [#2927](https://github.com/rust-lang/mdBook/pull/2927)
283 - Fixed missing font-awesome icons in the guide.
284 [#2926](https://github.com/rust-lang/mdBook/pull/2926)
285 - Hide the sidebar resize indicator when JS isn't available.
286 [#2923](https://github.com/rust-lang/mdBook/pull/2923)
287
288 ## mdBook 0.5.0-beta.1
289 [v0.5.0-alpha.1...v0.5.0-beta.1](https://github.com/rust-lang/mdBook/compare/v0.5.0-alpha.1...v0.5.0-beta.1)
290
291 ### Changed
292
293 - Reworked the look of the header navigation.
294 [#2898](https://github.com/rust-lang/mdBook/pull/2898)
295 - Update cargo dependencies.
296 [#2896](https://github.com/rust-lang/mdBook/pull/2896)
297 - Improved the heading nav debug.
298 [#2892](https://github.com/rust-lang/mdBook/pull/2892)
299
300 ### Fixed
301
302 - Fixed error message for config.get deserialization error.
303 [#2902](https://github.com/rust-lang/mdBook/pull/2902)
304 - Filter `<mark>` tags from sidebar heading nav.
305 [#2899](https://github.com/rust-lang/mdBook/pull/2899)
306 - Avoid divide-by-zero in heading nav computation
307 [#2891](https://github.com/rust-lang/mdBook/pull/2891)
308 - Fixed heading nav with folded chapters.
309 [#2893](https://github.com/rust-lang/mdBook/pull/2893)
310
311 ## mdBook 0.5.0-alpha.1
312 [v0.4.52...v0.5.0-alpha.1](https://github.com/rust-lang/mdBook/compare/v0.4.52...v0.5.0-alpha.1)
313
314 ### Added
315
316 - The location of the generated HTML book is now displayed on the console.
317 [#2729](https://github.com/rust-lang/mdBook/pull/2729)
318 - ❗ Added the `optional` field for preprocessors. The default is `false`, so this also changes it so that it is an error if the preprocessor is missing.
319 [#2797](https://github.com/rust-lang/mdBook/pull/2797)
320 - ❗ Added `MarkdownOptions` struct to specify settings for markdown rendering.
321 [#2809](https://github.cocm/rust-lang/mdBook/pull/2809)
322 - Added sidebar heading navigation. This includes the `output.html.sidebar-header-nav` option to disable it.
323 [#2822](https://github.com/rust-lang/mdBook/pull/2822)
324 - Added the mdbook version to the guide.
325 [#2826](https://github.com/rust-lang/mdBook/pull/2826)
326 - Added `Book::chapters` and `Book::for_each_chapter_mut` to more conveniently iterate over chapters (instead of all items).
327 [#2838](https://github.com/rust-lang/mdBook/pull/2838)
328 - ❗ Added support for definition lists. These are enabled by default, with the option `output.html.definition-lists` to disable it.
329 [#2847](https://github.com/rust-lang/mdBook/pull/2847)
330 - ❗ Added support for admonitions. These are enabled by default, with the option `output.html.admonitions` to disable it.
331 [#2851](https://github.com/rust-lang/mdBook/pull/2851)
332
333 ### Changed
334
335 - ❗ The `mdbook` crate has been split into multiple crates.
336 [#2766](https://github.com/rust-lang/mdBook/pull/2766)
337 - The minimum Rust version has been updated to 1.88.
338 [#2844](https://github.com/rust-lang/mdBook/pull/2844)
339 - ❗ `pulldown-cmark` has been upgraded to 0.13.0, bringing a large number of fixes to markdown processing.
340 [#2401](https://github.com/rust-lang/mdBook/pull/2401)
341 - ❗ Switched public types to `non_exhaustive` to help allow them to change in a backwards-compatible way.
342 [#2779](https://github.com/rust-lang/mdBook/pull/2779)
343 [#2823](https://github.com/rust-lang/mdBook/pull/2823)
344 - ❗ Unknown fields in config are now an error.
345 [#2787](https://github.com/rust-lang/mdBook/pull/2787)
346 [#2801](https://github.com/rust-lang/mdBook/pull/2801)
347 - ❗ Changed `id_from_content` to be private.
348 [#2791](https://github.com/rust-lang/mdBook/pull/2791)
349 - ❗ Changed preprocessor `command` to use paths relative to the book root.
350 [#2796](https://github.com/rust-lang/mdBook/pull/2796)
351 - ❗ Replaced the `{{#previous}}` and `{{#next}}` handelbars navigation helpers with objects.
352 [#2794](https://github.com/rust-lang/mdBook/pull/2794)
353 - ❗ Use embedded SVG instead of fonts for icons, font-awesome 6.2.
354 [#1330](https://github.com/rust-lang/mdBook/pull/1330)
355 - The `book.src` field is no longer serialized if it is the default of "src".
356 [#2800](https://github.com/rust-lang/mdBook/pull/2800)
357 - ❗ Changed `MDBook` `with_renderer`/`with_preprocessor` to overwrite the entry if an extension of the same name is already loaded.
358 [#2802](https://github.com/rust-lang/mdBook/pull/2802)
359 - ❗ Changed CLI `--dest-dir` to be relative to the current directory, not the book root.
360 [#2806](https://github.com/rust-lang/mdBook/pull/2806)
361 - ❗ Changed all internal HTML IDs to have an `mdbook-` prefix. This helps avoid namespace conflicts with header IDs.
362 [#2808](https://github.com/rust-lang/mdBook/pull/2808)
363 - ❗ `output.html.smart-punctuation` is now `true` by default.
364 [#2810](https://github.com/rust-lang/mdBook/pull/2810)
365 - ❗ Renamed `Book::sections` to `Book::items`.
366 [#2813](https://github.com/rust-lang/mdBook/pull/2813)
367 - ❗ `output.html.hash-files` is now `true` by default.
368 [#2820](https://github.com/rust-lang/mdBook/pull/2820)
369 - Switched from `log` to `tracing`.
370 [#2829](https://github.com/rust-lang/mdBook/pull/2829)
371 - ❗ Rewrote the HTML rendering pipeline.
372 [#2844](https://github.com/rust-lang/mdBook/pull/2844)
373 - ❗ Links on the print page now link to elements on the print page instead of linking out to the individual chapters.
374 [#2844](https://github.com/rust-lang/mdBook/pull/2844)
375 - ❗ Moved theme copy to the Theme type and reduced visibility.
376 [#2857](https://github.com/rust-lang/mdBook/pull/2857)
377 - ❗ Cleaned up some fs-related utilities.
378 [#2856](https://github.com/rust-lang/mdBook/pull/2856)
379 - ❗ Moved `get_404_output_file` to `HtmlConfig`.
380 [#2855](https://github.com/rust-lang/mdBook/pull/2855)
381 - ❗ Moved `take_lines` functions to `mdbook-driver` and made private.
382 [#2854](https://github.com/rust-lang/mdBook/pull/2854)
383 - Updated dependencies.
384 [#2793](https://github.com/rust-lang/mdBook/pull/2793)
385 [#2869](https://github.com/rust-lang/mdBook/pull/2869)
386
387 ### Removed
388
389 - ❗ Removed `toml` as a public dependency.
390 [#2773](https://github.com/rust-lang/mdBook/pull/2773)
391 - ❗ Removed the `book.multilingual` field. This was never used.
392 [#2775](https://github.com/rust-lang/mdBook/pull/2775)
393 - ❗ Removed support for google-analytics.
394 [#2776](https://github.com/rust-lang/mdBook/pull/2776)
395 - ❗ Removed the very old legacy config support.
396 [#2783](https://github.com/rust-lang/mdBook/pull/2783)
397 - ❗ Removed `curly-quotes`, use `output.html.smart-punctuation` instead.
398 [#2788](https://github.com/rust-lang/mdBook/pull/2788)
399 - Removed old warning about `book.json`.
400 [#2789](https://github.com/rust-lang/mdBook/pull/2789)
401 - ❗ Removed `output.html.copy-fonts`. The default fonts are now always copied unless you override the `theme/fonts/fonts.css` file.
402 [#2790](https://github.com/rust-lang/mdBook/pull/2790)
403 - ❗ Removed legacy relative renderer command paths. Relative renderer command paths now must always be relative to the book root.
404 [#2792](https://github.com/rust-lang/mdBook/pull/2792)
405 - ❗ Removed the `{{theme_option}}` handlebars helper. It has not been used for a while.
406 [#2795](https://github.com/rust-lang/mdBook/pull/2795)
407 - ❗ Removed the `--dest-dir` option to `mdbook test`.
408 [#2805](https://github.com/rust-lang/mdBook/pull/2805)
409
410 ### Fixed
411
412 - Fixed handling of multiple footnotes in a row.
413 [#2807](https://github.com/rust-lang/mdBook/pull/2807)
414 - Fixed ID collisions when the numeric suffix gets used.
415 [#2846](https://github.com/rust-lang/mdBook/pull/2846)
416 - Fixed missing css vars for no-js dark mode.
417 [#2850](https://github.com/rust-lang/mdBook/pull/2850)
418
419 ## mdBook 0.4.52
420 [v0.4.51...v0.4.52](https://github.com/rust-lang/mdBook/compare/v0.4.51...v0.4.52)
421
422 **Note:** If you have a custom `index.hbs` theme file, it is recommended that you update it to the latest version to pick up the fixes in this release.
423
424 ### Added
425 - Added the ability to redirect `#` HTML fragments using the existing `output.html.redirect` table.
426 [#2747](https://github.com/rust-lang/mdBook/pull/2747)
427 - Added the `rel="edit"` attribute to the edit page button.
428 [#2702](https://github.com/rust-lang/mdBook/pull/2702)
429
430 ### Changed
431 - The search index is now only loaded when the search input is opened instead of always being loaded.
432 [#2553](https://github.com/rust-lang/mdBook/pull/2553)
433 [#2735](https://github.com/rust-lang/mdBook/pull/2735)
434 - The `mdbook serve` command has switched its underlying server library from warp to axum.
435 [#2748](https://github.com/rust-lang/mdBook/pull/2748)
436 - Updated dependencies.
437 [#2752](https://github.com/rust-lang/mdBook/pull/2752)
438
439 ### Fixed
440 - The sidebar is now set to `display:none` when it is hidden in order to prevent the browser's search from thinking the sidebar's text is visible.
441 [#2725](https://github.com/rust-lang/mdBook/pull/2725)
442 - Fixed search index URL not updating correctly when `hash-files` is enabled.
443 [#2742](https://github.com/rust-lang/mdBook/pull/2742)
444 [#2746](https://github.com/rust-lang/mdBook/pull/2746)
445 - Fixed several sidebar animation bugs, particularly when manually resizing.
446 [#2750](https://github.com/rust-lang/mdBook/pull/2750)
447
448 ## mdBook 0.4.51
449 [v0.4.50...v0.4.51](https://github.com/rust-lang/mdBook/compare/v0.4.50...v0.4.51)
450
451 ### Fixed
452 - Fixed regression that broke the `S` search hotkey.
453 [#2713](https://github.com/rust-lang/mdBook/pull/2713)
454
455 ## mdBook 0.4.50
456 [v0.4.49...v0.4.50](https://github.com/rust-lang/mdBook/compare/v0.4.49...v0.4.50)
457
458 ### Added
459
460 - Added a keyboard shortcut help popup when pressing `?`.
461 [#2608](https://github.com/rust-lang/mdBook/pull/2608)
462
463 ### Changed
464
465 - Changed the look of the sidebar resize handle to match the new rustdoc format.
466 [#2691](https://github.com/rust-lang/mdBook/pull/2691)
467 - `/` can now be used to open the search bar.
468 [#2698](https://github.com/rust-lang/mdBook/pull/2698)
469 - Pressing enter from the search bar will navigate to the first entry.
470 [#2698](https://github.com/rust-lang/mdBook/pull/2698)
471 - Updated `opener` to drop some dependencies.
472 [#2709](https://github.com/rust-lang/mdBook/pull/2709)
473 - Updated dependencies, MSRV raised to 1.82.
474 [#2711](https://github.com/rust-lang/mdBook/pull/2711)
475
476 ### Fixed
477
478 - Fixed uncaught exception when pressing down when there are no search results.
479 [#2698](https://github.com/rust-lang/mdBook/pull/2698)
480 - Fixed syntax highlighting of Rust code in the ACE editor.
481 [#2710](https://github.com/rust-lang/mdBook/pull/2710)
482
483 ## mdBook 0.4.49
484 [v0.4.48...v0.4.49](https://github.com/rust-lang/mdBook/compare/v0.4.48...v0.4.49)
485
486 ### Added
487
488 - Added a warning on unused fields in the root of `book.toml`.
489 [#2622](https://github.com/rust-lang/mdBook/pull/2622)
490
491 ### Changed
492
493 - Updated dependencies.
494 [#2650](https://github.com/rust-lang/mdBook/pull/2650)
495 [#2688](https://github.com/rust-lang/mdBook/pull/2688)
496 - Updated minimum Rust version to 1.81.
497 [#2688](https://github.com/rust-lang/mdBook/pull/2688)
498 - The unused `book.multilingual` field is no longer serialized, or shown in `mdbook init`.
499 [#2689](https://github.com/rust-lang/mdBook/pull/2689)
500 - Speed up search index loading by using `JSON.parse` instead of parsing JavaScript.
501 [#2633](https://github.com/rust-lang/mdBook/pull/2633)
502
503 ### Fixed
504
505 - Search highlighting will not try to highlight in SVG `<text>` elements because it breaks the element.
506 [#2668](https://github.com/rust-lang/mdBook/pull/2668)
507 - Fixed scrolling of the sidebar when a search highlight term is in the URL.
508 [#2675](https://github.com/rust-lang/mdBook/pull/2675)
509 - Fixed issues when multiple footnote definitions use the same ID. Now, only one definition is used, and a warning is displayed.
510 [#2681](https://github.com/rust-lang/mdBook/pull/2681)
511 - The sidebar is now restricted to 80% of the viewport width to make it possible to collapse it when the viewport is very narrow.
512 [#2679](https://github.com/rust-lang/mdBook/pull/2679)
513
514 ## mdBook 0.4.48
515 [v0.4.47...v0.4.48](https://github.com/rust-lang/mdBook/compare/v0.4.47...v0.4.48)
516
517 ### Added
518
519 - Footnotes now have back-reference links. These links bring the reader back to the original location. As part of this change, footnotes are now only rendered at the bottom of the page. This also includes some styling updates and fixes for footnote rendering.
520 [#2626](https://github.com/rust-lang/mdBook/pull/2626)
521 - Added an "Auto" theme selection option which will default to the system-preferred mode. This will also automatically switch when the system changes the preferred mode.
522 [#2576](https://github.com/rust-lang/mdBook/pull/2576)
523
524 ### Changed
525
526 - The `searchindex.json` file has been removed; only the `searchindex.js` file will be generated.
527 [#2552](https://github.com/rust-lang/mdBook/pull/2552)
528 - Updated Javascript code to use eslint.
529 [#2554](https://github.com/rust-lang/mdBook/pull/2554)
530 - An error is generated if there are duplicate files in `SUMMARY.md`.
531 [#2613](https://github.com/rust-lang/mdBook/pull/2613)
532
533 ## mdBook 0.4.47
534 [v0.4.46...v0.4.47](https://github.com/rust-lang/mdBook/compare/v0.4.46...v0.4.47)
535
536 ### Fixed
537
538 - Fixed search not showing up in sub-directories.
539 [#2586](https://github.com/rust-lang/mdBook/pull/2586)
540
541 ## mdBook 0.4.46
542 [v0.4.45...v0.4.46](https://github.com/rust-lang/mdBook/compare/v0.4.45...v0.4.46)
543
544 ### Changed
545
546 - The `output.html.hash-files` config option has been added to add hashes to static filenames to bust any caches when a book is updated. `{{resource}}` template tags have been added so that links can be properly generated to those files.
547 [#1368](https://github.com/rust-lang/mdBook/pull/1368)
548
549 ### Fixed
550
551 - Playground links for Rust 2024 now set the edition correctly.
552 [#2557](https://github.com/rust-lang/mdBook/pull/2557)
553
554 ## mdBook 0.4.45
555 [v0.4.44...v0.4.45](https://github.com/rust-lang/mdBook/compare/v0.4.44...v0.4.45)
556
557 ### Changed
558
559 - Added context to error message when rustdoc is not found.
560 [#2545](https://github.com/rust-lang/mdBook/pull/2545)
561 - Slightly changed the styling rules around margins of footnotes.
562 [#2524](https://github.com/rust-lang/mdBook/pull/2524)
563
564 ### Fixed
565
566 - Fixed an issue where it would panic if a source_path is not set.
567 [#2550](https://github.com/rust-lang/mdBook/pull/2550)
568
569 ## mdBook 0.4.44
570 [v0.4.43...v0.4.44](https://github.com/rust-lang/mdBook/compare/v0.4.43...v0.4.44)
571
572 ### Added
573
574 - Added pre-built aarch64-apple-darwin binaries to the releases.
575 [#2500](https://github.com/rust-lang/mdBook/pull/2500)
576 - `mdbook clean` now shows a summary of what it did.
577 [#2458](https://github.com/rust-lang/mdBook/pull/2458)
578 - Added the `output.html.search.chapter` config setting to disable search indexing of individual chapters.
579 [#2533](https://github.com/rust-lang/mdBook/pull/2533)
580
581 ### Fixed
582
583 - Fixed auto-scrolling the side-bar when loading a page with a `#` fragment URL.
584 [#2517](https://github.com/rust-lang/mdBook/pull/2517)
585 - Fixed display of sidebar when javascript is disabled.
586 [#2529](https://github.com/rust-lang/mdBook/pull/2529)
587 - Fixed the sidebar visibility getting out of sync with the button.
588 [#2532](https://github.com/rust-lang/mdBook/pull/2532)
589
590 ### Changed
591
592 - ❗ Rust code block hidden lines now follow the same logic as rustdoc. This requires a space after the `#` symbol.
593 [#2530](https://github.com/rust-lang/mdBook/pull/2530)
594 - ❗ Updated the Linux pre-built binaries which requires a newer version of glibc (2.34).
595 [#2523](https://github.com/rust-lang/mdBook/pull/2523)
596 - Updated dependencies
597 [#2538](https://github.com/rust-lang/mdBook/pull/2538)
598 [#2539](https://github.com/rust-lang/mdBook/pull/2539)
599
600 ## mdBook 0.4.43
601 [v0.4.42...v0.4.43](https://github.com/rust-lang/mdBook/compare/v0.4.42...v0.4.43)
602
603 ### Fixed
604
605 - Fixed setting the title in `mdbook init` when no git user is configured.
606 [#2486](https://github.com/rust-lang/mdBook/pull/2486)
607
608 ### Changed
609
610 - The Rust 2024 edition no longer needs `-Zunstable-options`.
611 [#2495](https://github.com/rust-lang/mdBook/pull/2495)
612
613 ## mdBook 0.4.42
614 [v0.4.41...v0.4.42](https://github.com/rust-lang/mdBook/compare/v0.4.41...v0.4.42)
615
616 ### Fixed
617
618 - Fixed chapter list folding.
619 [#2473](https://github.com/rust-lang/mdBook/pull/2473)
620
621 ## mdBook 0.4.41
622 [v0.4.40...v0.4.41](https://github.com/rust-lang/mdBook/compare/v0.4.40...v0.4.41)
623
624 **Note:** If you have a custom `index.hbs` theme file, you will need to update it to the latest version.
625
626 ### Added
627
628 - Added preliminary support for Rust 2024 edition.
629 [#2398](https://github.com/rust-lang/mdBook/pull/2398)
630 - Added a full example of the remove-emphasis preprocessor.
631 [#2464](https://github.com/rust-lang/mdBook/pull/2464)
632
633 ### Changed
634
635 - Adjusted styling of clipboard/play icons.
636 [#2421](https://github.com/rust-lang/mdBook/pull/2421)
637 - Updated to handlebars v6.
638 [#2416](https://github.com/rust-lang/mdBook/pull/2416)
639 - Attr and section rules now have specific code highlighting.
640 [#2448](https://github.com/rust-lang/mdBook/pull/2448)
641 - The sidebar is now loaded from a common file, significantly reducing the book size when there are many chapters.
642 [#2414](https://github.com/rust-lang/mdBook/pull/2414)
643 - Updated dependencies.
644 [#2470](https://github.com/rust-lang/mdBook/pull/2470)
645
646 ### Fixed
647
648 - Improved theme support when JavaScript is disabled.
649 [#2454](https://github.com/rust-lang/mdBook/pull/2454)
650 - Fixed broken themes when localStorage has an invalid theme id.
651 [#2463](https://github.com/rust-lang/mdBook/pull/2463)
652 - Adjusted the line-height of superscripts (and footnotes) to avoid adding extra space between lines.
653 [#2465](https://github.com/rust-lang/mdBook/pull/2465)
654
655 ## mdBook 0.4.40
656 [v0.4.39...v0.4.40](https://github.com/rust-lang/mdBook/compare/v0.4.39...v0.4.40)
657
658 ### Fixed
659
660 - Reverted the update to pulldown-cmark which broke the semver API.
661 [#2388](https://github.com/rust-lang/mdBook/pull/2388)
662
663 ## mdBook 0.4.39
664 [v0.4.38...v0.4.39](https://github.com/rust-lang/mdBook/compare/v0.4.38...v0.4.39)
665
666 ### Fixed
667
668 - Fixed the automatic deploy broken in the previous release.
669 [#2383](https://github.com/rust-lang/mdBook/pull/2383)
670
671 ## mdBook 0.4.38
672 [v0.4.37...v0.4.38](https://github.com/rust-lang/mdBook/compare/v0.4.37...v0.4.38)
673
674 ### Added
675
676 - Added `nix` to the default set of languages supported for syntax highlighting.
677 [#2262](https://github.com/rust-lang/mdBook/pull/2262)
678
679 ### Changed
680
681 - The `output.html.curly-quotes` option has been renamed to `output.html.smart-punctuation` to better reflect what it does. The old option `curly-quotes` is kept for compatibility, but may be removed in the future.
682 [#2327](https://github.com/rust-lang/mdBook/pull/2327)
683 - The file-watcher used in `mdbook serve` and `mdbook watch` now uses a poll-based watcher instead of the native operating system notifications. This should fix issues on various systems and environments, and more accurately detect when files change. The native watcher can still be used with the `--watcher native` CLI option.
684 [#2325](https://github.com/rust-lang/mdBook/pull/2325)
685 - `mdbook test` output now includes color, and shows relative paths to the source.
686 [#2259](https://github.com/rust-lang/mdBook/pull/2259)
687 - Updated dependencies, MSRV raised to 1.74
688 [#2350](https://github.com/rust-lang/mdBook/pull/2350)
689 [#2351](https://github.com/rust-lang/mdBook/pull/2351)
690 [#2378](https://github.com/rust-lang/mdBook/pull/2378)
691 [#2381](https://github.com/rust-lang/mdBook/pull/2381)
692
693 ### Fixed
694
695 - Reduced memory allocation when copying files.
696 [#2355](https://github.com/rust-lang/mdBook/pull/2355)
697 - Fixed the horizontal divider in `SUMMARY.md` from being indented into the previous nested section.
698 [#2364](https://github.com/rust-lang/mdBook/pull/2364)
699 - Removed unnecessary `@import` in the CSS.
700 [#2260](https://github.com/rust-lang/mdBook/pull/2260)
701
702 ## mdBook 0.4.37
703 [v0.4.36...v0.4.37](https://github.com/rust-lang/mdBook/compare/v0.4.36...v0.4.37)
704
705 ### Changed
706 - ❗️ Updated the markdown parser. This brings in many changes to more closely follow the CommonMark spec. This may cause some small rendering changes. It is recommended to compare the output of the old and new version to check for changes. See <https://github.com/raphlinus/pulldown-cmark/releases/tag/v0.10.0> for more information.
707 [#2308](https://github.com/rust-lang/mdBook/pull/2308)
708 - The warning about the legacy `src/theme` directory has been removed.
709 [#2263](https://github.com/rust-lang/mdBook/pull/2263)
710 - Updated dependencies. MSRV raised to 1.71.0.
711 [#2283](https://github.com/rust-lang/mdBook/pull/2283)
712 [#2293](https://github.com/rust-lang/mdBook/pull/2293)
713 [#2297](https://github.com/rust-lang/mdBook/pull/2297)
714 [#2310](https://github.com/rust-lang/mdBook/pull/2310)
715 [#2309](https://github.com/rust-lang/mdBook/pull/2309)
716 - Some internal performance/memory improvements.
717 [#2273](https://github.com/rust-lang/mdBook/pull/2273)
718 [#2290](https://github.com/rust-lang/mdBook/pull/2290)
719 - Made the `pathdiff` dependency optional based on the `watch` feature.
720 [#2291](https://github.com/rust-lang/mdBook/pull/2291)
721
722 ### Fixed
723 - The `s` shortcut key handler should not trigger when focus is in an HTML form.
724 [#2311](https://github.com/rust-lang/mdBook/pull/2311)
725
726 ## mdBook 0.4.36
727 [v0.4.35...v0.4.36](https://github.com/rust-lang/mdBook/compare/v0.4.35...v0.4.36)
728
729 ### Added
730 - Added Nim to the default highlighted languages.
731 [#2232](https://github.com/rust-lang/mdBook/pull/2232)
732 - Added a small indicator for the sidebar resize handle.
733 [#2209](https://github.com/rust-lang/mdBook/pull/2209)
734
735 ### Changed
736 - Updated dependencies. MSRV raised to 1.70.0.
737 [#2173](https://github.com/rust-lang/mdBook/pull/2173)
738 [#2250](https://github.com/rust-lang/mdBook/pull/2250)
739 [#2252](https://github.com/rust-lang/mdBook/pull/2252)
740
741 ### Fixed
742 - Fixed blank column in print page when the sidebar was visible.
743 [#2235](https://github.com/rust-lang/mdBook/pull/2235)
744 - Fixed indentation of code blocks when Javascript is disabled.
745 [#2162](https://github.com/rust-lang/mdBook/pull/2162)
746 - Fixed a panic when `mdbook serve` or `mdbook watch` were given certain kinds of paths.
747 [#2229](https://github.com/rust-lang/mdBook/pull/2229)
748
749 ## mdBook 0.4.35
750 [v0.4.34...v0.4.35](https://github.com/rust-lang/mdBook/compare/v0.4.34...v0.4.35)
751
752 ### Added
753 - Added the `book.text-direction` setting for explicit support for right-to-left languages.
754 [#1641](https://github.com/rust-lang/mdBook/pull/1641)
755 - Added `rel=prefetch` to the "next" links to potentially improve browser performance.
756 [#2168](https://github.com/rust-lang/mdBook/pull/2168)
757 - Added a `.warning` CSS class which is styled for displaying warning blocks.
758 [#2187](https://github.com/rust-lang/mdBook/pull/2187)
759
760 ### Changed
761 - Better support of the sidebar when JavaScript is disabled.
762 [#2175](https://github.com/rust-lang/mdBook/pull/2175)
763
764 ## mdBook 0.4.34
765 [v0.4.33...v0.4.34](https://github.com/rust-lang/mdBook/compare/v0.4.33...v0.4.34)
766
767 ### Fixed
768 - Fixed file change watcher failing on macOS with a large number of files.
769 [#2157](https://github.com/rust-lang/mdBook/pull/2157)
770
771 ## mdBook 0.4.33
772 [v0.4.32...v0.4.33](https://github.com/rust-lang/mdBook/compare/v0.4.32...v0.4.33)
773
774 ### Added
775 - The `color-scheme` CSS property is now set based on the light/dark theme, which applies some slight color differences in browser elements like scroll bars on some browsers.
776 [#2134](https://github.com/rust-lang/mdBook/pull/2134)
777
778 ### Fixed
779 - Fixed watching of extra-watch-dirs when not running in the book root directory.
780 [#2146](https://github.com/rust-lang/mdBook/pull/2146)
781 - Reverted the dependency update to the `toml` crate (again!). This was an unintentional breaking change in 0.4.32.
782 [#2021](https://github.com/rust-lang/mdBook/pull/2021)
783 - Changed macOS change notifications to use the kqueue implementation which should fix some issues with repeated rebuilds when a file changed.
784 [#2152](https://github.com/rust-lang/mdBook/pull/2152)
785 - Don't set a background color in the print page for code blocks in a header.
786 [#2150](https://github.com/rust-lang/mdBook/pull/2150)
787
788 ## mdBook 0.4.32
789 [v0.4.31...v0.4.32](https://github.com/rust-lang/mdBook/compare/v0.4.31...v0.4.32)
790
791 ### Fixed
792 - Fixed theme-color meta tag not syncing with the theme.
793 [#2118](https://github.com/rust-lang/mdBook/pull/2118)
794
795 ### Changed
796 - Updated all dependencies.
797 [#2121](https://github.com/rust-lang/mdBook/pull/2121)
798 [#2122](https://github.com/rust-lang/mdBook/pull/2122)
799 [#2123](https://github.com/rust-lang/mdBook/pull/2123)
800 [#2124](https://github.com/rust-lang/mdBook/pull/2124)
801 [#2125](https://github.com/rust-lang/mdBook/pull/2125)
802 [#2126](https://github.com/rust-lang/mdBook/pull/2126)
803
804 ## mdBook 0.4.31
805 [v0.4.30...v0.4.31](https://github.com/rust-lang/mdBook/compare/v0.4.30...v0.4.31)
806
807 ### Fixed
808 - Fixed menu border render flash during page navigation.
809 [#2101](https://github.com/rust-lang/mdBook/pull/2101)
810 - Fixed flicker setting sidebar scroll position.
811 [#2104](https://github.com/rust-lang/mdBook/pull/2104)
812 - Fixed compile error with proc-macro2 on latest Rust nightly.
813 [#2109](https://github.com/rust-lang/mdBook/pull/2109)
814
815 ## mdBook 0.4.30
816 [v0.4.29...v0.4.30](https://github.com/rust-lang/mdBook/compare/v0.4.29...v0.4.30)
817
818 ### Added
819 - Added support for heading attributes.
820 Attributes are specified in curly braces just after the heading text.
821 An HTML ID can be specified with `#` and classes with `.`.
822 For example: `## My heading {#custom-id .class1 .class2}`
823 [#2013](https://github.com/rust-lang/mdBook/pull/2013)
824 - Added support for hidden code lines for languages other than Rust.
825 The `output.html.code.hidelines` table allows you to define the prefix character that will be used to hide code lines based on the language.
826 [#2093](https://github.com/rust-lang/mdBook/pull/2093)
827
828 ### Fixed
829 - Fixed a few minor markdown rendering issues.
830 [#2092](https://github.com/rust-lang/mdBook/pull/2092)
831
832 ## mdBook 0.4.29
833 [v0.4.28...v0.4.29](https://github.com/rust-lang/mdBook/compare/v0.4.28...v0.4.29)
834
835 ### Changed
836 - Built-in fonts are no longer copied when `fonts/fonts.css` is overridden in the theme directory.
837 Additionally, the warning about `copy-fonts` has been removed if `fonts/fonts.css` is specified.
838 [#2080](https://github.com/rust-lang/mdBook/pull/2080)
839 - `mdbook init --force` now skips all interactive prompts as intended.
840 [#2057](https://github.com/rust-lang/mdBook/pull/2057)
841 - Updated dependencies
842 [#2063](https://github.com/rust-lang/mdBook/pull/2063)
843 [#2086](https://github.com/rust-lang/mdBook/pull/2086)
844 [#2082](https://github.com/rust-lang/mdBook/pull/2082)
845 [#2084](https://github.com/rust-lang/mdBook/pull/2084)
846 [#2085](https://github.com/rust-lang/mdBook/pull/2085)
847
848 ### Fixed
849 - Switched from the `gitignore` library to `ignore`. This should bring some improvements with gitignore handling.
850 [#2076](https://github.com/rust-lang/mdBook/pull/2076)
851
852 ## mdBook 0.4.28
853 [v0.4.27...v0.4.28](https://github.com/rust-lang/mdBook/compare/v0.4.27...v0.4.28)
854
855 ### Changed
856 - The sidebar is now shown on wide screens when localstorage is disabled.
857 [#2017](https://github.com/rust-lang/mdBook/pull/2017)
858 - Preprocessors are now run with `mdbook test`.
859 [#1986](https://github.com/rust-lang/mdBook/pull/1986)
860
861 ### Fixed
862 - Fixed regression in 0.4.26 that prevented the title bar from scrolling properly on smaller screens.
863 [#2039](https://github.com/rust-lang/mdBook/pull/2039)
864
865 ## mdBook 0.4.27
866 [v0.4.26...v0.4.27](https://github.com/rust-lang/mdBook/compare/v0.4.26...v0.4.27)
867
868 ### Changed
869 - Reverted the dependency update to the `toml` crate. This was an unintentional breaking change in 0.4.26.
870 [#2021](https://github.com/rust-lang/mdBook/pull/2021)
871
872 ## mdBook 0.4.26
873 [v0.4.25...v0.4.26](https://github.com/rust-lang/mdBook/compare/v0.4.25...v0.4.26)
874
875 **The 0.4.26 release has been yanked due to an unintentional breaking change.**
876
877 ### Changed
878 - Removed custom scrollbars for webkit browsers
879 [#1961](https://github.com/rust-lang/mdBook/pull/1961)
880 - Updated some dependencies
881 [#1998](https://github.com/rust-lang/mdBook/pull/1998)
882 [#2009](https://github.com/rust-lang/mdBook/pull/2009)
883 [#2011](https://github.com/rust-lang/mdBook/pull/2011)
884 - Fonts are now part of the theme.
885 The `output.html.copy-fonts` option has been deprecated.
886 To define custom fonts, be sure to define `theme/fonts.css`.
887 [#1987](https://github.com/rust-lang/mdBook/pull/1987)
888
889 ### Fixed
890 - Fixed overflow viewport issue with mobile Safari
891 [#1994](https://github.com/rust-lang/mdBook/pull/1994)
892
893 ## mdBook 0.4.25
894 [e14d381...1ba74a3](https://github.com/rust-lang/mdBook/compare/e14d381...1ba74a3)
895
896 ### Fixed
897 - Fixed a regression where `mdbook test -L deps path-to-book` would not work.
898 [#1959](https://github.com/rust-lang/mdBook/pull/1959)
899
900 ## mdBook 0.4.24
901 [eb77083...8767ebf](https://github.com/rust-lang/mdBook/compare/eb77083...8767ebf)
902
903 ### Fixed
904 - The precompiled linux-gnu mdbook binary available on [GitHub Releases](https://github.com/rust-lang/mdBook/releases) inadvertently switched to a newer version of glibc. This release goes back to an older version that should be more compatible on older versions of Linux.
905 [#1955](https://github.com/rust-lang/mdBook/pull/1955)
906
907 ## mdBook 0.4.23
908 [678b469...68a75da](https://github.com/rust-lang/mdBook/compare/678b469...68a75da)
909
910 ### Changed
911 - Updated all dependencies
912 [#1951](https://github.com/rust-lang/mdBook/pull/1951)
913 [#1952](https://github.com/rust-lang/mdBook/pull/1952)
914 [#1844](https://github.com/rust-lang/mdBook/pull/1844)
915 - Updated minimum Rust version to 1.60.
916 [#1951](https://github.com/rust-lang/mdBook/pull/1951)
917
918 ### Fixed
919 - Fixed a regression where playground code was missing hidden lines, preventing it from compiling correctly.
920 [#1950](https://github.com/rust-lang/mdBook/pull/1950)
921
922 ## mdBook 0.4.22
923 [40c06f5...4844f72](https://github.com/rust-lang/mdBook/compare/40c06f5...4844f72)
924
925 ### Added
926 - Added a `--chapter` option to `mdbook test` to specify a specific chapter to test.
927 [#1741](https://github.com/rust-lang/mdBook/pull/1741)
928 - Added CSS styling for `<kbd>` tags.
929 [#1906](https://github.com/rust-lang/mdBook/pull/1906)
930 - Added pre-compiled binaries for `x86_64-unknown-linux-musl` and `aarch64-unknown-linux-musl` (see [Releases](https://github.com/rust-lang/mdBook/releases)).
931 [#1862](https://github.com/rust-lang/mdBook/pull/1862)
932 - Added `build.extra-watch-dirs` which is an array of additional directories to watch for changes when running `mdbook serve`.
933 [#1884](https://github.com/rust-lang/mdBook/pull/1884)
934
935 ### Changed
936 - Removed the `type="text/javascript"` attribute from `<script>` tags.
937 [#1881](https://github.com/rust-lang/mdBook/pull/1881)
938 - Switched to building with Rust Edition 2021.
939 This raises the minimum supported Rust version to 1.56.
940 [#1887](https://github.com/rust-lang/mdBook/pull/1887)
941 - When hidden code is hidden, the hidden parts are no longer copied to the clipboard via the copy button.
942 [#1911](https://github.com/rust-lang/mdBook/pull/1911)
943 - Various HTML changes and fixes to be more compliant with HTML5.
944 [#1924](https://github.com/rust-lang/mdBook/pull/1924)
945 - The theme picker now shows which theme is currently selected.
946 [#1935](https://github.com/rust-lang/mdBook/pull/1935)
947
948 ### Fixed
949 - Avoid blank line at the end of an ACE code block
950 [#1836](https://github.com/rust-lang/mdBook/pull/1836)
951
952
953 ## mdBook 0.4.21
954 [92afe9b...8f01d02](https://github.com/rust-lang/mdBook/compare/92afe9b...8f01d02)
955
956 ### Fixed
957 - Fixed an issue where mdBook would fail to compile with Rust nightly-2022-07-22.
958 [#1861](https://github.com/rust-lang/mdBook/pull/1861)
959
960 ## mdBook 0.4.20
961 [53055e0...da166e0](https://github.com/rust-lang/mdBook/compare/53055e0...da166e0)
962
963 ### Fixed
964 - Fixed a regression in 0.4.19 where inline code would have excessive padding
965 in some situations such as headings.
966 [#1855](https://github.com/rust-lang/mdBook/pull/1855)
967
968 ## mdBook 0.4.19
969 [ae275ad...53055e0](https://github.com/rust-lang/mdBook/compare/ae275ad...53055e0)
970
971 ### Added
972 - The `serve` command now supports HEAD requests.
973 [#1825](https://github.com/rust-lang/mdBook/pull/1825)
974
975 ### Changed
976 - An error is now generated when a custom theme directory does not exist.
977 [#1791](https://github.com/rust-lang/mdBook/pull/1791)
978 - Very wide tables now have independent horizontal scrolling so that scrolling
979 to see the rest of the table will not scroll the entire page.
980 [#1617](https://github.com/rust-lang/mdBook/pull/1617)
981 - The buttons on code blocks are now only shown when the mouse cursor hovers
982 over them (or tapped on mobile). There is also some extra spacing to reduce
983 the overlap with the code.
984 [#1806](https://github.com/rust-lang/mdBook/pull/1806)
985 - The first chapter always generates an `index.html` file. Previously it would
986 only generate the index file for prefix chapters.
987 [#1829](https://github.com/rust-lang/mdBook/pull/1829)
988
989 ### Fixed
990 - `mdbook serve --open` now properly handles the case if the first chapter is a draft.
991 [#1714](https://github.com/rust-lang/mdBook/pull/1714)
992 [#1830](https://github.com/rust-lang/mdBook/pull/1830)
993 - Very long words (over 80 characters) are no longer indexed to avoid a stack overflow.
994 [#1833](https://github.com/rust-lang/mdBook/pull/1833)
995
996 ## mdBook 0.4.18
997 [981b79b...ae275ad](https://github.com/rust-lang/mdBook/compare/981b79b...ae275ad)
998
999 ### Fixed
1000 - Fixed rendering of SUMMARY links that contain markdown escapes or other
1001 markdown elements.
1002 [#1785](https://github.com/rust-lang/mdBook/pull/1785)
1003
1004 ## mdBook 0.4.17
1005 [a5fddfa...981b79b](https://github.com/rust-lang/mdBook/compare/a5fddfa...981b79b)
1006
1007 ### Fixed
1008 - Fixed parsing of `output.html.print` configuration table.
1009 [#1775](https://github.com/rust-lang/mdBook/pull/1775)
1010
1011 ## mdBook 0.4.16
1012 [68a5c09...a5fddfa](https://github.com/rust-lang/mdBook/compare/68a5c09...a5fddfa)
1013
1014 ### Added
1015 - Added `output.html.print.page-break` config option to control whether or not
1016 there is a page break between chapters in the print output.
1017 [#1728](https://github.com/rust-lang/mdBook/pull/1728)
1018 - Added `output.html.playground.runnable` config option to globally disable
1019 the run button in code blocks.
1020 [#1546](https://github.com/rust-lang/mdBook/pull/1546)
1021
1022 ### Changed
1023 - The `mdbook serve` live reload websocket now uses the protocol, host, and
1024 port of the current page, allowing access through a proxy.
1025 [#1771](https://github.com/rust-lang/mdBook/pull/1771)
1026 - The 404 not-found page now includes the books title in the HTML title tag.
1027 [#1693](https://github.com/rust-lang/mdBook/pull/1693)
1028 - Migrated to clap 3.0 which handles CLI option parsing.
1029 [#1731](https://github.com/rust-lang/mdBook/pull/1731)
1030
1031 ### Fixed
1032 - Minor fixes to the markdown parser.
1033 [#1729](https://github.com/rust-lang/mdBook/pull/1729)
1034 - Fixed incorrect parsing in `SUMMARY.md` when it didn't start with a title.
1035 [#1744](https://github.com/rust-lang/mdBook/pull/1744)
1036 - Fixed duplicate anchor IDs for links in search results.
1037 [#1749](https://github.com/rust-lang/mdBook/pull/1749)
1038
1039 ## mdBook 0.4.15
1040 [5eb7d46...68a5c09](https://github.com/rust-lang/mdBook/compare/5eb7d46...68a5c09)
1041
1042 ### Changed
1043 - Major update to expand the documentation located at <https://rust-lang.github.io/mdBook/>.
1044 [#1709](https://github.com/rust-lang/mdBook/pull/1709)
1045 [#1710](https://github.com/rust-lang/mdBook/pull/1710)
1046 - Updated the markdown parser with various fixes for common-mark compliance.
1047 [#1712](https://github.com/rust-lang/mdBook/pull/1712)
1048
1049 ## mdBook 0.4.14
1050 [ffa8284...c9b6be8](https://github.com/rust-lang/mdBook/compare/ffa8284...c9b6be8)
1051
1052 ### Added
1053 - The 2021 Rust edition option has been stabilized.
1054 [#1642](https://github.com/rust-lang/mdBook/pull/1642)
1055
1056 ### Changed
1057 - Header anchors no longer include any HTML tags. Previously only a small
1058 subset were excluded.
1059 [#1683](https://github.com/rust-lang/mdBook/pull/1683)
1060 - Deprecated the google-analytics option. Books using this option should place
1061 the appropriate code in the `theme/head.hbs` file instead.
1062 [#1675](https://github.com/rust-lang/mdBook/pull/1675)
1063
1064 ### Fixed
1065 - Updated the markdown parser which brings in a few small fixes and removes
1066 the custom smart quote handling.
1067 [#1668](https://github.com/rust-lang/mdBook/pull/1668)
1068 - Fixed iOS Safari enlarging text when going into landscape mode.
1069 [#1685](https://github.com/rust-lang/mdBook/pull/1685)
1070
1071 ## mdBook 0.4.13
1072 [e6629cd...f55028b](https://github.com/rust-lang/mdBook/compare/e6629cd...f55028b)
1073
1074 ### Added
1075
1076 - Added the ability to specify the preprocessor order.
1077 [#1607](https://github.com/rust-lang/mdBook/pull/1607)
1078
1079 ### Fixed
1080
1081 - Include chapters with no headers in the search index
1082 [#1637](https://github.com/rust-lang/mdBook/pull/1637)
1083 - Switched to the `opener` crate for opening a web browser, which should fix
1084 some issues with blocking.
1085 [#1656](https://github.com/rust-lang/mdBook/pull/1656)
1086 - Fixed clicking the border of the theme switcher breaking the theme selection.
1087 [#1651](https://github.com/rust-lang/mdBook/pull/1651)
1088
1089 ## mdBook 0.4.12
1090 [14add9c...8b4e488](https://github.com/rust-lang/mdBook/compare/14add9c...8b4e488)
1091
1092 ### Changed
1093 - Reverted the change to update to highlight.js 11, as it broke hidden code lines.
1094 [#1597](https://github.com/rust-lang/mdBook/pull/1621)
1095
1096 ## mdBook 0.4.11
1097 [e440094...2cf00d0](https://github.com/rust-lang/mdBook/compare/e440094...2cf00d0)
1098
1099 ### Added
1100 - Added support for Rust 2021 edition.
1101 [#1596](https://github.com/rust-lang/mdBook/pull/1596)
1102 - Added `mdbook completions` subcommand which provides shell completions.
1103 [#1425](https://github.com/rust-lang/mdBook/pull/1425)
1104 - Added `--title` and `--ignore` flags to `mdbook init` to avoid the
1105 interactive input.
1106 [#1559](https://github.com/rust-lang/mdBook/pull/1559)
1107
1108 ### Changed
1109 - If running a Rust example does not have any output, it now displays the text
1110 "No output" instead of not showing anything.
1111 [#1599](https://github.com/rust-lang/mdBook/pull/1599)
1112 - Code block language tags can now be separated by space or tab (along with
1113 commas) to match the behavior of other sites like GitHub and rustdoc.
1114 [#1469](https://github.com/rust-lang/mdBook/pull/1469)
1115 - Updated `warp` (the web server) to the latest version.
1116 This also updates the minimum supported Rust version to 1.46.
1117 [#1612](https://github.com/rust-lang/mdBook/pull/1612)
1118 - Updated to highlight.js 11. This has various highlighting improvements.
1119 [#1597](https://github.com/rust-lang/mdBook/pull/1597)
1120
1121 ### Fixed
1122 - Inline code blocks inside a header are no longer highlighted when
1123 `output.html.playground.editable` is `true`.
1124 [#1613](https://github.com/rust-lang/mdBook/pull/1613)
1125
1126 ## mdBook 0.4.10
1127 [2f7293a...dc2062a](https://github.com/rust-lang/mdBook/compare/2f7293a...dc2062a)
1128
1129 ### Changed
1130 - Reverted breaking change in 0.4.9 that removed the `__non_exhaustive` marker
1131 on the `Book` struct.
1132 [#1572](https://github.com/rust-lang/mdBook/pull/1572)
1133 - Updated handlebars to 4.0.
1134 [#1550](https://github.com/rust-lang/mdBook/pull/1550)
1135 - Removed the `chapter_begin` id on the print page's chapter separators.
1136 [#1541](https://github.com/rust-lang/mdBook/pull/1541)
1137
1138 ## mdBook 0.4.9
1139 [7e01cf9...d325c60](https://github.com/rust-lang/mdBook/compare/7e01cf9...d325c60)
1140
1141 ### Changed
1142 - Updated all dependencies and raised the minimum Rust version to 1.42.
1143 [#1528](https://github.com/rust-lang/mdBook/pull/1528)
1144 - Added more detail to error message when a preprocessor fails.
1145 [#1526](https://github.com/rust-lang/mdBook/pull/1526)
1146 - Set max-width of HTML video tags to 100% to match img tags.
1147 [#1542](https://github.com/rust-lang/mdBook/pull/1542)
1148
1149 ### Fixed
1150 - Type errors when parsing `book.toml` are no longer ignored.
1151 [#1539](https://github.com/rust-lang/mdBook/pull/1539)
1152 - Better handling if `mdbook serve` fails to start the http server.
1153 [#1555](https://github.com/rust-lang/mdBook/pull/1555)
1154 - Fixed the path for `edit-url-template` if the book used a source directory
1155 other than `src`.
1156 [#1554](https://github.com/rust-lang/mdBook/pull/1554)
1157
1158 ## mdBook 0.4.8
1159 [fcceee4...b592b10](https://github.com/rust-lang/mdBook/compare/fcceee4...b592b10)
1160
1161 ### Added
1162 - Added the option `output.html.edit-url-template` which can be a URL which is
1163 linked on each page to direct the user to a site (such as GitHub) where the
1164 user can directly suggest an edit for the page they are currently reading.
1165 [#1506](https://github.com/rust-lang/mdBook/pull/1506)
1166
1167 ### Changed
1168 - Printed output now includes a page break between chapters.
1169 [#1485](https://github.com/rust-lang/mdBook/pull/1485)
1170
1171 ### Fixed
1172 - HTML, such as HTML comments, is now ignored if it appears above the title line
1173 in `SUMMARY.md`.
1174 [#1437](https://github.com/rust-lang/mdBook/pull/1437)
1175
1176 ## mdBook 0.4.7
1177 [9a9eb01...c83bbd6](https://github.com/rust-lang/mdBook/compare/9a9eb01...c83bbd6)
1178
1179 ### Changed
1180 - Updated shlex parser to fix a minor parsing issue (used by the
1181 preprocessor/backend custom command config).
1182 [#1471](https://github.com/rust-lang/mdBook/pull/1471)
1183 - Enhanced text contrast of `light` theme to improve accessibility.
1184 [#1470](https://github.com/rust-lang/mdBook/pull/1470)
1185
1186 ### Fixed
1187 - Fixed some issues with fragment scrolling and linking.
1188 [#1463](https://github.com/rust-lang/mdBook/pull/1463)
1189
1190 ## mdBook 0.4.6
1191 [eaa6914...1a0c296](https://github.com/rust-lang/mdBook/compare/eaa6914...1a0c296)
1192
1193 ### Changed
1194 - The chapter name is now included in the search breadcrumbs.
1195 [#1389](https://github.com/rust-lang/mdBook/pull/1389)
1196 - Pressing Escape will remove the `?highlight` argument from the URL.
1197 [#1427](https://github.com/rust-lang/mdBook/pull/1427)
1198 - `mdbook init --theme` will now place the theme in the root of the book
1199 directory instead of in the `src` directory.
1200 [#1432](https://github.com/rust-lang/mdBook/pull/1432)
1201 - A custom renderer that sets the `command` to a relative path now interprets
1202 the relative path relative to the book root. Previously it was inconsistent
1203 based on the platform (either relative to the current directory, or relative
1204 to the renderer output directory). Paths relative to the output directory
1205 are still supported with a deprecation warning.
1206 [#1418](https://github.com/rust-lang/mdBook/pull/1418)
1207 - The `theme` directory in the config is now interpreted as relative to the
1208 book root, instead of the current directory.
1209 [#1405](https://github.com/rust-lang/mdBook/pull/1405)
1210 - Handle UTF-8 BOM for chapter sources.
1211 [#1285](https://github.com/rust-lang/mdBook/pull/1285)
1212 - Removed extra whitespace added to `{{#playground}}` snippets.
1213 [#1375](https://github.com/rust-lang/mdBook/pull/1375)
1214
1215 ### Fixed
1216 - Clicking on a search result with multiple search words will now correctly
1217 highlight all of the words.
1218 [#1426](https://github.com/rust-lang/mdBook/pull/1426)
1219 - Properly handle `<` and `>` characters in the table of contents.
1220 [#1376](https://github.com/rust-lang/mdBook/pull/1376)
1221 - Fixed to properly serialize the `build` table in the config, which prevented
1222 setting it in the API.
1223 [#1378](https://github.com/rust-lang/mdBook/pull/1378)
1224
1225 ## mdBook 0.4.5
1226 [eaa6914...f66df09](https://github.com/rust-lang/mdBook/compare/eaa6914...f66df09)
1227
1228 ### Fixed
1229
1230 - Fixed XSS in the search page.
1231 [CVE-2020-26297](https://groups.google.com/g/rustlang-security-announcements/c/3-sO6of29O0)
1232 [648c9ae](https://github.com/rust-lang/mdBook/commit/648c9ae772bec83f0a5954d17b4287d5bb1d6606)
1233
1234 ## mdBook 0.4.4
1235 [4df9ec9...01836ba](https://github.com/rust-lang/mdBook/compare/4df9ec9...01836ba)
1236
1237 ### Added
1238 - Added the `output.html.print.enable` configuration value to disable the
1239 "print" page.
1240 [#1169](https://github.com/rust-lang/mdBook/pull/1169)
1241 - Added a list of supported languages for syntax-highlighting to the
1242 documentation.
1243 [#1345](https://github.com/rust-lang/mdBook/pull/1345)
1244
1245 ### Fixed
1246 - Now supports symbolic links for files in the `src` directory.
1247 [#1323](https://github.com/rust-lang/mdBook/pull/1323)
1248
1249 ## mdBook 0.4.3
1250 [9278b83...4df9ec9](https://github.com/rust-lang/mdBook/compare/9278b83...4df9ec9)
1251
1252 ### Added
1253 - Added `output.html.cname` option to emit a `CNAME` file which is used by
1254 GitHub Pages to know which domain is being used.
1255 [#1311](https://github.com/rust-lang/mdBook/pull/1311)
1256
1257 ### Changed
1258 - `mdbook test` no longer stops on the first test failure, but instead will
1259 run all the tests.
1260 [#1313](https://github.com/rust-lang/mdBook/pull/1313)
1261 - Removed the `local` font source for Source Code Pro, as the locally
1262 installed font may not render properly on FireFox on macOS.
1263 [#1307](https://github.com/rust-lang/mdBook/pull/1307)
1264
1265 ### Fixed
1266 - Added newline to end of `.nojekyll` file.
1267 [#1310](https://github.com/rust-lang/mdBook/pull/1310)
1268 - Fixed missing space before draft chapter titles.
1269 [#1309](https://github.com/rust-lang/mdBook/pull/1309)
1270
1271 ## mdBook 0.4.2
1272 [649f355...9278b83](https://github.com/rust-lang/mdBook/compare/649f355...9278b83)
1273
1274 ### Changed
1275 - The "show hidden lines" icon has changed from the "expand" icon to an "eye".
1276 [#1281](https://github.com/rust-lang/mdBook/pull/1281)
1277 - Updated highlight.js. This adds several languages: c, c-like (effectively
1278 cpp), csharp (replaces cs), kotlin, less, lua, php-template, plaintext,
1279 python-repl, r, scss, typescript.
1280 [#1277](https://github.com/rust-lang/mdBook/pull/1277)
1281
1282 ### Fixed
1283 - Fixed SUMMARY links that contained newlines.
1284 [#1291](https://github.com/rust-lang/mdBook/pull/1291)
1285 - Fixed SUMMARY links that contain `%20` spaces.
1286 [#1293](https://github.com/rust-lang/mdBook/pull/1293)
1287 - Fixed favicon so that if only the png or svg is overridden, the other is not
1288 automatically included in the `<link>` tag.
1289 [#1272](https://github.com/rust-lang/mdBook/pull/1272)
1290
1291 ## mdBook 0.4.1
1292 [d4df7e7...649f355](https://github.com/rust-lang/mdBook/compare/d4df7e7...649f355)
1293
1294 ### Changed
1295 - Removed several outdated dev-dependencies.
1296 [#1267](https://github.com/rust-lang/mdBook/pull/1267)
1297
1298 ### Fixed
1299 - Fixed sidebar scrolling if the book includes part titles.
1300 [#1265](https://github.com/rust-lang/mdBook/pull/1265)
1301 - Don't include the default favicon if only one of the PNG or SVG is overridden.
1302 [#1266](https://github.com/rust-lang/mdBook/pull/1266)
1303
1304 ## mdBook 0.4.0
1305 [99ecd4f...d4df7e7](https://github.com/rust-lang/mdBook/compare/99ecd4f...d4df7e7)
1306
1307 ### Breaking Changes
1308 - Several of the changes in the release have altered the public API of the
1309 mdbook library.
1310 - Many dependencies have been updated or replaced.
1311 This also removes the `--websocket-hostname` and `--websocket-port` from
1312 the `serve` command.
1313 [#1211](https://github.com/rust-lang/mdBook/pull/1211)
1314 - A new "404" page is now automatically rendered. This requires knowledge of
1315 the base URL of your site to work properly. If you decide to use this as
1316 your 404 page, you should set the `site-url` setting in the book
1317 configuration so mdbook can generate the links correctly. Alternatively you
1318 can disable the 404 page generation, or set up your own 404 handling in your
1319 web server.
1320 [#1221](https://github.com/rust-lang/mdBook/pull/1221)
1321 - The `debug` and `output` features have been removed as they were unused.
1322 [#1211](https://github.com/rust-lang/mdBook/pull/1211)
1323 - If you are using customized themes, you may want to consider setting the
1324 `preferred-dark-theme` config setting, as it now defaults to "navy".
1325 [#1199](https://github.com/rust-lang/mdBook/pull/1199)
1326 - "Playpen" has been renamed to "playground". This is generally backwards
1327 compatible for users, but `{{#playpen}}` will now display warnings. This may
1328 impact books that have modified the "playpen" elements in the theme.
1329 [#1241](https://github.com/rust-lang/mdBook/pull/1241)
1330 - If a renderer is not installed, it is now treated as an error. If you want
1331 the old behavior of ignoring missing renderers, set the `optional` setting
1332 for that renderer.
1333 [#1122](https://github.com/rust-lang/mdBook/pull/1122)
1334 - If you have a custom favicon, you may need to look into adding an SVG
1335 version, otherwise the default SVG icon will be displayed.
1336 [#1230](https://github.com/rust-lang/mdBook/pull/1230)
1337
1338 ### Added
1339 - Added a new `[rust]` configuration section to `book.toml`, which allows
1340 setting the default edition with `edition = "2018"`.
1341 [#1163](https://github.com/rust-lang/mdBook/pull/1163)
1342 - Renderers can now be marked as `optional`, so that they will be ignored if
1343 the renderer is not installed.
1344 [#1122](https://github.com/rust-lang/mdBook/pull/1122)
1345 - Added `head.hbs` to allow adding content to the `<head>` section in HTML.
1346 [#1206](https://github.com/rust-lang/mdBook/pull/1206)
1347 - Added "draft chapters". These are chapters listed without a link to indicate
1348 content yet to be written.
1349 [#1153](https://github.com/rust-lang/mdBook/pull/1153)
1350 - Added "parts" to split a book into different sections. Headers can be added
1351 to `SUMMARY.md` to signify different sections.
1352 [#1171](https://github.com/rust-lang/mdBook/pull/1171)
1353 - Added generation of a "404" page for handling missing pages and broken links.
1354 [#1221](https://github.com/rust-lang/mdBook/pull/1221)
1355 - Added configuration section for specifying URL redirects.
1356 [#1237](https://github.com/rust-lang/mdBook/pull/1237)
1357 - Added an SVG favicon that works with light and dark colors schemes.
1358 [#1230](https://github.com/rust-lang/mdBook/pull/1230)
1359
1360 ### Changed
1361 - Changed default Rust attribute of `allow(unused_variables)` to `allow(unused)`.
1362 [#1195](https://github.com/rust-lang/mdBook/pull/1195)
1363 - Fonts are now served locally instead of from the Google Fonts CDN. The
1364 `copy-fonts` option was added to disable this if you want to supply your own
1365 fonts.
1366 [#1188](https://github.com/rust-lang/mdBook/pull/1188)
1367 - Switched the built-in webserver for the `serve` command to a new
1368 implementation. This results in some internal differences in how websockets
1369 are handled, which removes the separate websocket options. This should also
1370 make it easier to serve multiple books at once.
1371 [#1211](https://github.com/rust-lang/mdBook/pull/1211)
1372 - The default dark theme is now "navy".
1373 [#1199](https://github.com/rust-lang/mdBook/pull/1199)
1374 - "Playpen" has been renamed to "playground", matching the actual name of the
1375 service which was renamed many years ago.
1376 [#1241](https://github.com/rust-lang/mdBook/pull/1241)
1377
1378 ### Fixed
1379 - Links with the `+` symbol should now work.
1380 [#1208](https://github.com/rust-lang/mdBook/pull/1208)
1381 - The `MDBOOK_BOOK` environment variable now correctly allows overriding the
1382 entire book configuration.
1383 [#1207](https://github.com/rust-lang/mdBook/pull/1207)
1384 - The sidebar can no longer be dragged outside of the window.
1385 [#1229](https://github.com/rust-lang/mdBook/pull/1229)
1386 - Hide the Rust Playground "play" button for `no_run` code samples.
1387 [#1249](https://github.com/rust-lang/mdBook/pull/1249)
1388 - Fixed the `--dest-dir` command-line option for the `serve` and `watch`
1389 commands.
1390 [#1228](https://github.com/rust-lang/mdBook/pull/1228)
1391 - Hotkey handlers are now disabled in `text` input fields (for example, typing
1392 `S` in a custom text input field).
1393 [#1244](https://github.com/rust-lang/mdBook/pull/1244)
1394
1395 ## mdBook 0.3.7
1396 [88684d8...99ecd4f](https://github.com/rust-lang/mdBook/compare/88684d8...99ecd4f)
1397
1398 ### Changed
1399 - Code spans in headers are no longer highlighted as code.
1400 [#1162](https://github.com/rust-lang/mdBook/pull/1162)
1401 - The sidebar will now scroll the activate page to the middle instead of the top.
1402 [#1161](https://github.com/rust-lang/mdBook/pull/1161)
1403 - Reverted change to reject build output within the `src` directory, and
1404 instead add a check that prevents infinite copies.
1405 [#1181](https://github.com/rust-lang/mdBook/pull/1181)
1406 [#1026](https://github.com/rust-lang/mdBook/pull/1026)
1407
1408 ### Fixed
1409 - Fixed sidebar line-height jumping for collapsed chapters.
1410 [#1182](https://github.com/rust-lang/mdBook/pull/1182)
1411 - Fixed theme selector focus.
1412 [#1170](https://github.com/rust-lang/mdBook/pull/1170)
1413
1414 ## mdBook 0.3.6
1415 [efdb832...88684d8](https://github.com/rust-lang/mdBook/compare/efdb832...88684d8)
1416
1417 ### Added
1418 - `MDBook::execute_build_process` is now publicly accessible in the API so
1419 that plugins can more easily initiate the build process.
1420 [#1099](https://github.com/rust-lang/mdBook/pull/1099)
1421
1422 ### Changed
1423 - Use a different color for Ayu theme's highlighting for Rust attributes (uses
1424 a bright color instead of the comment color).
1425 [#1133](https://github.com/rust-lang/mdBook/pull/1133)
1426 - Adjusted spacing of sidebar entries.
1427 [#1137](https://github.com/rust-lang/mdBook/pull/1137)
1428 - Slightly adjusted line-height of `<p>`, `<ul>`, and `<ol>`.
1429 [#1136](https://github.com/rust-lang/mdBook/pull/1136)
1430 - Handlebars updated to 3.0.
1431 [#1130](https://github.com/rust-lang/mdBook/pull/1130)
1432
1433 ### Fixed
1434 - Fix an issue with sidebar scroll position on reload.
1435 [#1108](https://github.com/rust-lang/mdBook/pull/1108)
1436 - `mdbook serve` will retain the current scroll position when the page is reloaded.
1437 [#1097](https://github.com/rust-lang/mdBook/pull/1097)
1438 - Fixed the page name if the book didn't have a title to not be prefixed with ` - `.
1439 [#1145](https://github.com/rust-lang/mdBook/pull/1145)
1440 - HTML attributes `rel=next` and `rel=previous` are now supported in "wide"
1441 mode (previously they were only set in narrow mode).
1442 [#1150](https://github.com/rust-lang/mdBook/pull/1150)
1443 - Prevent recursive copies when the destination directory is contained in the
1444 source directory.
1445 [#1135](https://github.com/rust-lang/mdBook/pull/1135)
1446 - Adjusted the menu bar animation to not immediately obscure the top content.
1447 [#989](https://github.com/rust-lang/mdBook/pull/989)
1448 - Fix for comments in SUMMARY.md that appear between items.
1449 [#1167](https://github.com/rust-lang/mdBook/pull/1167)
1450
1451 ## mdBook 0.3.5
1452 [6e0d0fa...efdb832](https://github.com/rust-lang/mdBook/compare/6e0d0fa...efdb832)
1453
1454 ### Changed
1455 - The `default-theme` config setting is now case-insensitive.
1456 [#1079](https://github.com/rust-lang/mdBook/pull/1079)
1457
1458 ### Fixed
1459 - Fixed `#` hidden Rust code lines not rendering properly.
1460 [#1088](https://github.com/rust-lang/mdBook/pull/1088)
1461 - Updated pulldown-cmark to 0.6.1, fixing several issues.
1462 [#1021](https://github.com/rust-lang/mdBook/pull/1021)
1463
1464 ## mdBook 0.3.4
1465 [e5f77aa...6e0d0fa](https://github.com/rust-lang/mdBook/compare/e5f77aa...6e0d0fa)
1466
1467 ### Changed
1468 - Switch to relative `rem` font sizes from `px`.
1469 [#894](https://github.com/rust-lang/mdBook/pull/894)
1470 - Migrated repository to https://github.com/rust-lang/mdBook/
1471 [#1083](https://github.com/rust-lang/mdBook/pull/1083)
1472
1473 ## mdBook 0.3.3
1474 [2b649fe...e5f77aa](https://github.com/rust-lang/mdBook/compare/2b649fe...e5f77aa)
1475
1476 ### Changed
1477 - Improvements to the automatic dark theme selection.
1478 [#1069](https://github.com/rust-lang/mdBook/pull/1069)
1479 - Fragment links now prevent scrolling the header behind the menu bar.
1480 [#1077](https://github.com/rust-lang/mdBook/pull/1077)
1481
1482 ### Fixed
1483 - Fixed error when building a book that has a spacer immediately after the
1484 first chapter.
1485 [#1075](https://github.com/rust-lang/mdBook/pull/1075)
1486
1487 ## mdBook 0.3.2
1488 [9cd47eb...2b649fe](https://github.com/rust-lang/mdBook/compare/9cd47eb...2b649fe)
1489
1490 ### Added
1491 - Added a markdown renderer, which is off by default. This may be useful for
1492 debugging preprocessors.
1493 [#1018](https://github.com/rust-lang/mdBook/pull/1018)
1494 - Code samples may now include line numbers with the
1495 `output.html.playpen.line-numbers` configuration value.
1496 [#1035](https://github.com/rust-lang/mdBook/pull/1035)
1497 - The `watch` and `serve` commands will now ignore files listed in
1498 `.gitignore`.
1499 [#1044](https://github.com/rust-lang/mdBook/pull/1044)
1500 - Added automatic dark-theme detection based on the CSS `prefers-color-scheme`
1501 feature. This may be enabled by setting `output.html.preferred-dark-theme`
1502 to your preferred dark theme.
1503 [#1037](https://github.com/rust-lang/mdBook/pull/1037)
1504 - Added `rustdoc_include` preprocessor. This makes it easier to include
1505 portions of an external Rust source file. The rest of the file is hidden,
1506 but the user may expand it to see the entire file, and will continue to work
1507 with `mdbook test`.
1508 [#1003](https://github.com/rust-lang/mdBook/pull/1003)
1509 - Added Ctrl-Enter shortcut to the playpen editor to automatically run the
1510 sample.
1511 [#1066](https://github.com/rust-lang/mdBook/pull/1066)
1512 - Added `output.html.playpen.copyable` configuration option to disable
1513 the copy button.
1514 [#1050](https://github.com/rust-lang/mdBook/pull/1050)
1515 - Added ability to dynamically expand and fold sections within the sidebar.
1516 See the `output.html.fold` configuration to enable this feature.
1517 [#1027](https://github.com/rust-lang/mdBook/pull/1027)
1518
1519 ### Changed
1520 - Use standard `scrollbar-color` CSS along with webkit extension
1521 [#816](https://github.com/rust-lang/mdBook/pull/816)
1522 - The renderer build directory is no longer deleted before the renderer is
1523 run. This allows a backend to cache results between runs.
1524 [#985](https://github.com/rust-lang/mdBook/pull/985)
1525 - Next/prev links now highlight on hover to indicate it is clickable.
1526 [#994](https://github.com/rust-lang/mdBook/pull/994)
1527 - Increase padding of table headers.
1528 [#824](https://github.com/rust-lang/mdBook/pull/824)
1529 - Errors in `[output.html]` config are no longer ignored.
1530 [#1033](https://github.com/rust-lang/mdBook/pull/1033)
1531 - Updated highlight.js for syntax highlighting updates (primarily to add
1532 async/await to Rust highlighting).
1533 [#1041](https://github.com/rust-lang/mdBook/pull/1041)
1534 - Raised minimum supported rust version to 1.35.
1535 [#1003](https://github.com/rust-lang/mdBook/pull/1003)
1536 - Hidden code lines are no longer dynamically removed via JavaScript, but
1537 instead managed with CSS.
1538 [#846](https://github.com/rust-lang/mdBook/pull/846)
1539 [#1065](https://github.com/rust-lang/mdBook/pull/1065)
1540 - Changed the default font set for the ACE editor, giving preference to
1541 "Source Code Pro".
1542 [#1062](https://github.com/rust-lang/mdBook/pull/1062)
1543 - Windows 32-bit releases are no longer published.
1544 [#1071](https://github.com/rust-lang/mdBook/pull/1071)
1545
1546 ### Fixed
1547 - Fixed sidebar auto-scrolling.
1548 [#1052](https://github.com/rust-lang/mdBook/pull/1052)
1549 - Fixed error message when running `clean` multiple times.
1550 [#1055](https://github.com/rust-lang/mdBook/pull/1055)
1551 - Actually fix the "next" link on index.html. The previous fix didn't work.
1552 [#1005](https://github.com/rust-lang/mdBook/pull/1005)
1553 - Stop using `inline-block` for `inline code`, fixing selection highlighting
1554 and some rendering issues.
1555 [#1058](https://github.com/rust-lang/mdBook/pull/1058)
1556 - Fix header auto-hide on browsers with momentum scrolling that allows
1557 negative `scrollTop`.
1558 [#1070](https://github.com/rust-lang/mdBook/pull/1070)
1559
1560 ## mdBook 0.3.1
1561 [69a08ef...9cd47eb](https://github.com/rust-lang/mdBook/compare/69a08ef...9cd47eb)
1562
1563 ### Added
1564 - 🔥 Added ability to include files using anchor points instead of line numbers.
1565 [#851](https://github.com/rust-lang/mdBook/pull/851)
1566 - Added `language` configuration value to set the language of the book, which
1567 will affect things like the `<html lang="en">` tag.
1568 [#941](https://github.com/rust-lang/mdBook/pull/941)
1569
1570 ### Changed
1571 - Updated to handlebars 2.0.
1572 [#977](https://github.com/rust-lang/mdBook/pull/977)
1573
1574 ### Fixed
1575 - Fixed memory leak warning.
1576 [#967](https://github.com/rust-lang/mdBook/pull/967)
1577 - Fix more print.html links.
1578 [#963](https://github.com/rust-lang/mdBook/pull/963)
1579 - Fixed crash on some unicode input.
1580 [#978](https://github.com/rust-lang/mdBook/pull/978)
1581
1582 ## mdBook 0.3.0
1583 [6cbc41d...69a08ef](https://github.com/rust-lang/mdBook/compare/6cbc41d...69a08ef)
1584
1585 ### Added
1586 - Added ability to resize the sidebar.
1587 [#849](https://github.com/rust-lang/mdBook/pull/849)
1588 - Added `load_with_config_and_summary` function to `MDBook` to be able to
1589 build a book with a custom `Summary`.
1590 [#883](https://github.com/rust-lang/mdBook/pull/883)
1591 - Set `noindex` on `print.html` page to prevent robots from indexing it.
1592 [#844](https://github.com/rust-lang/mdBook/pull/844)
1593 - Added support for ~~strikethrough~~ and GitHub-style tasklists.
1594 [#952](https://github.com/rust-lang/mdBook/pull/952)
1595
1596 ### Changed
1597 - Command-line help output is now colored.
1598 [#861](https://github.com/rust-lang/mdBook/pull/861)
1599 - The build directory is now deleted before rendering starts, instead of after
1600 if finishes.
1601 [#878](https://github.com/rust-lang/mdBook/pull/878)
1602 - Removed dependency on `same-file` crate.
1603 [#903](https://github.com/rust-lang/mdBook/pull/903)
1604 - 💥 Renamed `with_preprecessor` to `with_preprocessor`.
1605 [#906](https://github.com/rust-lang/mdBook/pull/906)
1606 - Updated ACE editor to 1.4.4, should remove a JavaScript console warning.
1607 [#935](https://github.com/rust-lang/mdBook/pull/935)
1608 - Dependencies have been updated.
1609 [#934](https://github.com/rust-lang/mdBook/pull/934)
1610 [#945](https://github.com/rust-lang/mdBook/pull/945)
1611 - Highlight.js has been updated. This fixes some TOML highlighting, and adds
1612 Julia support.
1613 [#942](https://github.com/rust-lang/mdBook/pull/942)
1614 - 🔥 Updated to pulldown-cmark 0.5. This may have significant changes to the
1615 formatting of existing books, as the newer version has more accurate
1616 interpretation of the CommonMark spec and a large number of bug fixes and
1617 changes.
1618 [#898](https://github.com/rust-lang/mdBook/pull/898)
1619 - The `diff` language should now highlight correctly.
1620 [#943](https://github.com/rust-lang/mdBook/pull/943)
1621 - Make the blank region of a header not clickable.
1622 [#948](https://github.com/rust-lang/mdBook/pull/948)
1623 - Rustdoc tests now use the preprocessed content instead of the raw,
1624 unpreprocessed content.
1625 [#891](https://github.com/rust-lang/mdBook/pull/891)
1626
1627 ### Fixed
1628 - Fixed file change detection so that `mdbook serve` only reloads once when
1629 multiple files are changed at once.
1630 [#870](https://github.com/rust-lang/mdBook/pull/870)
1631 - Fixed on-hover color highlighting for links in sidebar.
1632 [#834](https://github.com/rust-lang/mdBook/pull/834)
1633 - Fixed loss of focus when clicking the "Copy" button in code blocks.
1634 [#867](https://github.com/rust-lang/mdBook/pull/867)
1635 - Fixed incorrectly stripping the path for `additional-js` files.
1636 [#796](https://github.com/rust-lang/mdBook/pull/796)
1637 - Fixed color of `code spans` that are links.
1638 [#905](https://github.com/rust-lang/mdBook/pull/905)
1639 - Fixed "next" navigation on index.html.
1640 [#916](https://github.com/rust-lang/mdBook/pull/916)
1641 - Fixed keyboard chapter navigation for `file` urls.
1642 [#915](https://github.com/rust-lang/mdBook/pull/915)
1643 - Fixed bad wrapping for inline code on some browsers.
1644 [#818](https://github.com/rust-lang/mdBook/pull/818)
1645 - Properly load an existing `SUMMARY.md` in `mdbook init`.
1646 [#841](https://github.com/rust-lang/mdBook/pull/841)
1647 - Fixed some broken links in `print.html`.
1648 [#871](https://github.com/rust-lang/mdBook/pull/871)
1649 - The Rust Playground link now supports the 2018 edition.
1650 [#946](https://github.com/rust-lang/mdBook/pull/946)
1651
1652 ## mdBook 0.2.3 (2018-01-18)
1653 [2c20c99...6cbc41d](https://github.com/rust-lang/mdBook/compare/2c20c99...6cbc41d)
1654
1655 ### Added
1656 - Added an optional button to the top of the page which will link to a git
1657 repository. Use the `git-repository-url` and `git-repository-icon` options
1658 in the `[output.html]` section to enable it and set its appearance.
1659 [#802](https://github.com/rust-lang/mdBook/pull/802)
1660 - Added a `default-theme` option to the `[output.html]` section.
1661 [#804](https://github.com/rust-lang/mdBook/pull/804)
1662
1663 ### Changed
1664 - 💥 Header ID anchors no longer add an arbitrary `a` character for headers
1665 that start with a non-ascii-alphabetic character.
1666 [#788](https://github.com/rust-lang/mdBook/pull/788)
1667
1668 ### Fixed
1669 - Fix websocket hostname usage
1670 [#865](https://github.com/rust-lang/mdBook/pull/865)
1671 - Fixing links in print.html
1672 [#866](https://github.com/rust-lang/mdBook/pull/866)
1673
1674 ## mdBook 0.2.2 (2018-10-19)
1675 [7e2e095...2c20c99](https://github.com/rust-lang/mdBook/compare/7e2e095...2c20c99)
1676
1677 ### Added
1678 - 🎉 Process-based custom preprocessors. See [the
1679 docs](https://rust-lang.github.io/mdBook/for_developers/preprocessors.html)
1680 for more.
1681 [#792](https://github.com/rust-lang/mdBook/pull/792)
1682
1683 - 🎉 Configurable preprocessors.
1684
1685 Added `build.use-default-preprocessors` boolean TOML key to allow disabling
1686 the built-in `links` and `index` preprocessors.
1687
1688 Added `[preprocessor]` TOML tables to configure each preprocessor.
1689
1690 Specifying `[preprocessor.links]` or `[preprocessor.index]` will enable the
1691 respective built-in preprocessor if `build.use-default-preprocessors` is
1692 `false`.
1693
1694 Added `fn supports_renderer(&self, renderer: &str) -> bool` to the
1695 `Preprocessor` trait to specify if the preprocessor supports the given
1696 renderer. The default implementation always returns `true`.
1697
1698 `Preprocessor::run` now takes a book by value instead of a mutable
1699 reference. It should return a `Book` value with the intended modifications.
1700
1701 Added `PreprocessorContext::renderer` to indicate the renderer being used.
1702
1703 [#658](https://github.com/rust-lang/mdBook/pull/658)
1704 [#787](https://github.com/rust-lang/mdBook/pull/787)
1705
1706 ### Fixed
1707 - Fix paths to additional CSS and JavaScript files
1708 [#777](https://github.com/rust-lang/mdBook/pull/777)
1709 - Ensure section numbers are correctly incremented after a horizontal
1710 separator
1711 [#790](https://github.com/rust-lang/mdBook/pull/790)
1712
1713 ## mdBook 0.2.1 (2018-08-22)
1714 [91ffca1...7e2e095](https://github.com/rust-lang/mdBook/compare/91ffca1...7e2e095)
1715
1716 ### Changed
1717 - Update to handlebars-rs 1.0
1718 [#761](https://github.com/rust-lang/mdBook/pull/761)
1719
1720 ### Fixed
1721 - Fix table colors, broken by Stylus -> CSS transition
1722 [#765](https://github.com/rust-lang/mdBook/pull/765)
1723
1724 ## mdBook 0.2.0 (2018-08-02)
1725
1726 ### Changed
1727 - 💥 This release changes how links are handled in mdBook. Previously, relative
1728 links were interpreted relative to the book's root. In `0.2.0`+ links are
1729 relative to the page they are in, and use the `.md` extension. This has [several
1730 advantages](https://github.com/rust-lang/mdBook/pull/603#issue-166701447),
1731 such as making links work in other markdown viewers like GitHub. You will
1732 likely have to change links in your book to accommodate this change. For
1733 example, a book with this layout:
1734
1735 ```
1736 chapter_1/
1737 section_1.md
1738 section_2.md
1739 SUMMARY.md
1740 ```
1741
1742 Previously a link in `section_1.md` to `section_2.md` would look like this:
1743 ```markdown
1744 [section_2](chapter_1/section_2.html)
1745 ```
1746
1747 Now it must be changed to this:
1748 ```markdown
1749 [section_2](section_2.md)
1750 ```
1751
1752 - 💥 `mdbook test --library-path` now accepts a comma-delimited list of
1753 arguments rather than taking all following arguments. This makes it easier
1754 to handle the trailing book directory argument without always needing to put
1755 ` -- ` before it. Multiple instances of the option continue to be accepted:
1756 `mdbook test -L foo -L bar`.
1757
1758 - 💥 `mdbook serve` has some of its options renamed for clarity. See `mdbook
1759 help serve` for details.
1760
1761 - Embedded rust playpens now use the "stable" playground API.
1762 [#754](https://github.com/rust-lang/mdBook/pull/754)
1763
1764 ### Fixed
1765 - Escaped includes (`\{{#include file.rs}}`) will now render correctly.
1766 [f30ce01](https://github.com/rust-lang/mdBook/commit/f30ce0184d71e342141145472bf816419d30a2c5)
1767 - `index.html` will now render correctly when the book's first section is
1768 inside a subdirectory.
1769 [#756](https://github.com/rust-lang/mdBook/pull/756)