about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2020-10-04 20:42:34 -0700
committerCamelid <camelidcamel@gmail.com>2020-12-03 14:11:37 -0800
commit5d4a7128d9929723769a7c674f49e9fe3fc0ff13 (patch)
treedf8b1d6a6805dcec1f944a6daff7fb450b8c90d3 /src/test/codegen/src-hash-algorithm
parentb4def89d76896eec73b4af33642ba7e5eb53c567 (diff)
downloadrust-5d4a7128d9929723769a7c674f49e9fe3fc0ff13.tar.gz
rust-5d4a7128d9929723769a7c674f49e9fe3fc0ff13.zip
Render Markdown in search results
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`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions