summary refs log tree commit diff
path: root/src/librustdoc/html/markdown
AgeCommit message (Collapse)AuthorLines
2020-12-20impl Default for LangString, replacing all_false by defaultAlexis Bourget-30/+18
2020-12-13Refactor test_lang_string_parse to make it clearerAlexis Bourget-74/+69
2020-12-03Render Markdown in search resultsCamelid-1/+32
Previously Markdown documentation was not rendered to HTML for search results, which led to the output not being very readable, particularly for inline code. This PR fixes that by rendering Markdown to HTML with the help of pulldown-cmark (the library rustdoc uses to parse Markdown for the main text of documentation). However, the text for the title attribute (the text shown when you hover over an element) still uses the plain-text rendering since it is displayed in browsers as plain-text. Only these styles will be rendered; everything else is stripped away: * *italics* * **bold** * `inline code`
2020-09-03Auto merge of #73819 - euclio:rustdoc-summaries, r=jyn514,GuillaumeGomezbors-3/+10
rustdoc: do not use plain summary for trait impls Fixes #38386. Fixes #48332. Fixes #49430. Fixes #62741. Fixes #73474. Unfortunately this is not quite ready to go because the newly-working links trigger a bunch of linkcheck failures. The failures are tough to fix because the links are resolved relative to the implementor, which could be anywhere in the module hierarchy. (In the current docs, these links end up rendering as uninterpreted markdown syntax, so I don't think these failures are any worse than the status quo. It might be acceptable to just add them to the linkchecker whitelist.) Ideally this could be fixed with intra-doc links ~~but it isn't working for me: I am currently investigating if it's possible to solve it this way.~~ Opened #73829. EDIT: This is now ready!
2020-08-31Fix stringGuillaume Gomez-1/+1
2020-08-31Fix strings indentGuillaume Gomez-20/+15
2020-08-30rustdoc: do not use plain summary for trait implsAndy Russell-3/+10
Fixes #38386. Fixes #48332. Fixes #49430. Fixes #62741. Fixes #73474.
2020-07-15rustdoc: Rename internal API fns to `into_string`Lzu Tao-3/+4
to avoid surprising listed in API guidelines.
2020-05-06Update librustdoc ID testsGuillaume Gomez-4/+4
2020-04-23Update LangString::parse usage in markdown testsGuillaume Gomez-1/+1
2020-01-02Normalize `syntax::edition` imports.Mazdak Farrokhzad-1/+1
2019-12-24x.py fmt after previous deignoreMark Rousskov-71/+162
2019-09-03Added ability to crosscompile doctestsDario Gonzalez-21/+23
2019-08-11Drop RefCell from IdMap in markdown renderingMark Rousskov-6/+6
2019-08-02librustdoc: Unconfigure tests during normal buildVadim Petrochenkov-0/+20
2019-06-16Separate librustcdoc modulechansuke-0/+125