about summary refs log tree commit diff
path: root/src/librustdoc/html/markdown.rs
AgeCommit message (Collapse)AuthorLines
2020-07-16Rollup merge of #74359 - lzutao:rustdoc-tostring, r=GuillaumeGomezManish Goregaokar-5/+5
rustdoc: Rename internal API fns to `into_string` to avoid surprising listed in API guidelines.
2020-07-15rustdoc: Rename internal API fns to `into_string`Lzu Tao-5/+5
to avoid surprising listed in API guidelines.
2020-07-14rustdoc: glue tokens before highlightingAndy Russell-2/+2
Fixes #72684. This commit also modifies the signature of `Classifier::new` to avoid copying the source being highlighted.
2020-07-07rustdoc: Rename invalid_codeblock_attribute lint to be pluralOliver Middleton-1/+1
2020-06-18Added tooltip for should_panic code examples.Jake Degen-0/+8
Previously, compile_fail and ignore code examples displayed a tooltip indicating this in the documentation. This tooltip has now also been added to should_panic examples.
2020-05-12Rollup merge of #71928 - mibac138:strikethrough, r=GuillaumeGomezDylan DPC-3/+11
Add strikethrough support to rustdoc Implements uncontroversial part of #71183. r? @GuillaumeGomez
2020-05-06Add strikethrough support to rustdocmibac138-3/+11
2020-05-05Index IDs already used by rustdoc templateGuillaume Gomez-2/+29
2020-04-23Fix librustdoc error due to `as_local_hir_id` changesmarmeladema-2/+2
2020-04-23Create new rustdoc lint to check for code blocks tagsGuillaume Gomez-4/+114
2020-04-16Dogfood or_patterns in rustdocJosh Stone-2/+2
2020-03-31more clippy fixesMatthias Krüger-64/+59
use is_empty() instead of len comparison (clippy::len_zero) use if let instead of while let loop that never loops (clippy::never_loop) remove redundant returns (clippy::needless_return) remove redundant closures (clippy::redundant_closure) use if let instead of match and wildcard pattern (clippy::single_match) don't repeat field names redundantly (clippy::redundant_field_names)
2020-03-07Use ?-operator in more places (clippy::question_mark, had some false ↵Matthias Krüger-5/+1
negatives fixed recently)
2020-03-07rustdoc: don't call into_iter() on iterator. (clippy::identity_conversion)Matthias Krüger-1/+1
2020-03-05Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPCDylan DPC-6/+2
even more clippy cleanups * Don't pass &mut where immutable reference (&) is sufficient (clippy::unnecessary_mut_passed) * Use more efficient &&str to String conversion (clippy::inefficient_to_string) * Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call) * Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg) * Use simple 'for i in x' loops instead of 'while let Some(i) = x.next()' loops on iterators. (clippy::while_let_on_iterator) * Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) * Remove redundant patterns when matching ( x @ _ to x) (clippy::redundant_pattern)
2020-03-05Use simple 'for i in x' loops instead of 'while let Some(x) = x.next()' ↵Matthias Krüger-6/+2
loops on iterators. (clippy::while_let_on_iterator)
2020-03-04Use .as_deref() instead of .as_ref().map(Deref::deref) ↵Matthias Krüger-2/+2
(clippy::option_as_ref_deref)
2020-02-29use .iter() instead of .into_iter() on references.Matthias Krüger-2/+2
2020-02-27use char instead of &str for single char patternsMatthias Krüger-1/+1
2020-02-24don't explicitly compare against true or falseMatthias Krüger-2/+2
2020-02-14Update pulldown-cmark dependencyGuillaume Gomez-75/+95
2020-01-16Don't keep link title either, text is generated outside of the link tagGuillaume Gomez-2/+1
2020-01-14Prevent urls in headingsGuillaume Gomez-2/+6
2020-01-02Normalize `syntax::edition` imports.Mazdak Farrokhzad-3/+3
2019-12-22Format the worldMark Rousskov-126/+118
2019-11-08rustdoc: Stabilize `edition` annotation.Eric Huss-3/+1
2019-09-13Move Toc printing from fmt::DisplayMark Rousskov-1/+1
2019-09-10Auto merge of #60387 - Goirad:test-expansion, r=ollie27bors-11/+32
Allow cross-compiling doctests This PR allows doctest to receive a --runtool argument, as well as possibly many --runtool-arg arguments, which are then used to run cross compiled doctests. Also, functionality has been added to rustdoc to allow it to skip testing doctests on a per-target basis, in the same way that compiletest does it. For example, tagging the doctest with "ignore-sgx" disables testing on any targets that contain "sgx". A plain "ignore" still skips testing on all targets. See [here](https://github.com/rust-lang/cargo/pull/6892) for the companion PR in the cargo project that extends functionality in Cargo so that it passes the appropriate parameters to rustdoc when cross compiling and testing doctests. Part of [#6460](https://github.com/rust-lang/cargo/issues/6460)
2019-09-07rustdoc: fix diagnostic with mixed code block stylesEric Huss-1/+4
2019-09-03added rustdoc book documentation, improved behavior when unstable flag not ↵Dario Gonzalez-10/+4
present
2019-09-03added feature gate enable-per-target-ignoresDario Gonzalez-6/+11
updated and augmented tests in html/markdown.rs
2019-09-03Added ability to crosscompile doctestsDario Gonzalez-6/+28
2019-08-26Shorten line during rendering instead of in markdownMark Rousskov-19/+1
2019-08-11Drop RefCell from IdMap in markdown renderingMark Rousskov-12/+7
2019-08-11Remove fmt::Display impls on Markdown structsMark Rousskov-31/+26
These impls prevent ergonomic use of the config (e.g., forcing us to use RefCell) despite all usecases for these structs only using their Display impls once.
2019-08-11Remove thread-local for playground configMark Rousskov-93/+110
2019-08-02librustdoc: Unconfigure tests during normal buildVadim Petrochenkov-24/+3
2019-06-16Fix tidyVadim Petrochenkov-16/+21
2019-06-16Separate librustcdoc modulechansuke-127/+1
2019-05-29upgrade rustdoc's `pulldown-cmark` to 0.5.2Andy Russell-5/+5
Fixes #60482.
2019-05-06update rustdoc doc testQuietMisdreavus-1/+5
2019-05-06update rustdoc unit testsQuietMisdreavus-4/+7
2019-05-06set the default edition when pre-parsing a doctestQuietMisdreavus-25/+29
2019-04-22upgrade rustdoc's pulldown-cmark to 0.4.1Andy Russell-80/+37
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-13/+13
2019-02-10rustc: doc commentsAlexander Regueiro-5/+5
2019-01-14rustdoc: check code block syntax in early passAndy Russell-0/+109
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-13Split on words insteadGuillaume Gomez-2/+16
2018-12-11Remove unneeded extra chars to reduce search-index sizeGuillaume Gomez-1/+5