summary refs log tree commit diff
path: root/src/librustdoc/html/markdown.rs
AgeCommit message (Collapse)AuthorLines
2017-04-22Fix line displayGuillaume Gomez-8/+4
2017-04-22Fix testsGuillaume Gomez-4/+5
2017-04-22Re-enable hoedown by defaultGuillaume Gomez-41/+294
2017-04-20Fix line display for hoedownGuillaume Gomez-3/+7
2017-04-17Hoedown big comeback!Guillaume Gomez-0/+191
2017-04-11Remove strings fulfilled with whitespaces in code block headersGuillaume Gomez-6/+7
2017-04-09Fix block code headers parsingGuillaume Gomez-8/+15
2017-04-06rustdoc: Use pulldown-cmark for Markdown HTML renderingOliver Middleton-461/+267
Instead of rendering all of the HTML in rustdoc this relies on pulldown-cmark's `push_html` to do most of the work. A few iterator adapters are used to make rustdoc specific modifications to the output. This also fixes MarkdownHtml and link titles in plain_summary_line.
2017-04-04Handle ordered lists as wellGuillaume Gomez-4/+12
2017-04-01Force footnote references to be sorted by idGuillaume Gomez-4/+6
2017-03-31Fix hard break issueGuillaume Gomez-2/+34
2017-03-30Fix multiple footnotes and improve testingGuillaume Gomez-21/+33
2017-03-29Add support for image, rules and footnotesGuillaume Gomez-28/+111
2017-03-28Improve function namingGuillaume Gomez-23/+22
2017-03-28Fix id generationGuillaume Gomez-47/+51
2017-03-28Fix plain_summary_line functionGuillaume Gomez-33/+51
2017-03-28Handle html in markdown as wellGuillaume Gomez-0/+3
2017-03-28Remove unneeded commentGuillaume Gomez-6/+0
2017-03-28Add a macro to improve codeGuillaume Gomez-117/+39
2017-03-28Add missing markdown tagsGuillaume Gomez-142/+239
2017-03-28End of pulldown switch and remove completely hoedownGuillaume Gomez-450/+211
2017-03-28Remains to fix tablesGuillaume Gomez-20/+74
2017-03-28Replace hoedown with pull in rustdocGuillaume Gomez-107/+308
2017-02-08Rollup merge of #39597 - GuillaumeGomez:correct_rustdoc_test_file, ↵Corey Farwell-3/+5
r=alexcrichton Display correct filename with --test option Fixes #39592. With the current files: ```rust pub mod foo; /// This is a Foo; /// /// ``` /// println!("baaaaaar"); /// ``` pub struct Foo; /// This is a Bar; /// /// ``` /// println!("fooooo"); /// ``` pub struct Bar; ``` ```rust // note the whitespaces /// ``` /// println!("foo"); /// ``` pub fn foo() {} ``` It displays: ``` ./build/x86_64-apple-darwin/stage1/bin/rustdoc --test test.rs running 3 tests test test.rs - line 13 ... ok test test.rs - line 5 ... ok test foo.rs - line 2 ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured ``` ``` ` `` println!("lol"); ` `` asdjnfasd asd ``` It displays: ``` ./build/x86_64-apple-darwin/stage1/bin/rustdoc --test foo.md running 1 test test <input> - line 3 ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured ``` r? @alexcrichton
2017-02-06Display correct filename with --test optionGuillaume Gomez-3/+5
2017-02-06std: Remove cfg(cargobuild) annotationsAlex Crichton-5/+0
These are all now no longer needed that we've only got rustbuild in tree.
2017-02-03Switch logic to Span instead of HashMapGuillaume Gomez-3/+5
2017-02-03Move to my own hoedown repositoryGuillaume Gomez-17/+28
2017-02-03Add information in case of markdown block code test failureggomez-1/+6
2017-01-29Remove no longer necessary ctor checks in rustc_privacyVadim Petrochenkov-2/+0
2017-01-27Don't generate doc if doc comments only filled with 'white' charactersGuillaume Gomez-1/+2
2016-12-25Add unittestEsteban Küber-1/+12
2016-12-14Add `MarkdownHmtl` escape structEsteban Küber-4/+20
`MarkdownHtml` structs escape HTML tags from its text.
2016-10-31Changed most vec! invocations to use square bracesiirelu-1/+1
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-15rustdoc: Improve playground run buttonsOliver Middleton-6/+37
The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-09-26deduplicate inline is_nightly_build implementationsTim Neumann-7/+4
2016-09-26refactor away get_unstable_features_settingTim Neumann-2/+1
2016-09-08Set run button transparent instead of invisibleGuillaume Gomez-3/+5
2016-06-20Add error code flagGuillaume Gomez-12/+15
2016-06-12Add error codes block code flagGuillaume Gomez-6/+22
2016-04-04rustdoc: factor out function for getting inner html of highlighted sourceNick Cameron-3/+3
2016-03-27Don't initialize id-map when rendering md filesmitaa-3/+3
Adding these "known" values to the table of used ids is only required when embedding markdown into a rustdoc html page and may yield unexpected results when rendering a standalone `*.md` file.
2016-02-27Clearly separate code blocks from other blocksmitaa-1/+3
For summary descriptions we need the first paragraph (adjacent lines until a blank line) - but the rendered markdown of a code block did not leave a blank line in the html and was thus included in the summary line.
2016-02-12Auto merge of #30726 - GuillaumeGomez:compile-fail, r=brsonbors-15/+32
r? @brson cc @alexcrichton I still need to add error code explanation test with this, but I can't figure out a way to generate the `.md` files in order to test example source codes. Will fix #27328.
2016-02-11bootstrap: Add directives to not double-link libsAlex Crichton-0/+3
Have all Cargo-built crates pass `--cfg cargobuild` and then add appropriate `#[cfg]` definitions to all crates to avoid linking anything if this is passed. This should help allow libstd to compile with both the makefiles and with Cargo.
2016-02-09Fix librustdoc testGuillaume Gomez-21/+9
2016-02-09Check if we're not in stable to allow compile_fail option in rustdoc --testGuillaume Gomez-3/+24
2016-02-09Update MakefileGuillaume Gomez-1/+1
2016-02-07Add compile-fail test in rustdocGuillaume Gomez-15/+23
2015-12-05Add testsmitaa-0/+27