diff options
| author | Michael Macias <zaeleus@gmail.com> | 2015-04-06 12:06:39 -0500 |
|---|---|---|
| committer | Michael Macias <zaeleus@gmail.com> | 2015-04-06 13:02:41 -0500 |
| commit | b6c2e82b71ebc6d596f6c7651b22dffa37c4e41b (patch) | |
| tree | cb6843dff2b6c7bc09e68adc42f68aec5c9a12af /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 9f37ba64e812713b273ad9818f05d852f6563b87 (diff) | |
| download | rust-b6c2e82b71ebc6d596f6c7651b22dffa37c4e41b.tar.gz rust-b6c2e82b71ebc6d596f6c7651b22dffa37c4e41b.zip | |
rustdoc: Add a custom callback for codespan to collapse whitespace
Because the current style for `code` in rustdoc is to prewrap whitespace, code spans that are hard wrapped in the source documentation are prematurely wrapped when rendered in HTML. CommonMark 0.18 [[1]] specifies "interior spaces and line endings are collapsed into single spaces" for code spans, which would actually prevent this issue, but hoedown does not currently conform to the CommonMark spec. The added span-level callback attempts to adhere to how whitespace is handled as described by CommonMark, fixing the issue of early, unintentional wrapping of code spans in rendered HTML. [1]: http://spec.commonmark.org/0.18/
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
