mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 02:13:57 +00:00
Fix integration of codeblocks in search result description
This commit is contained in:
parent
5b638c1d37
commit
4ca7a1119e
@ -1024,7 +1024,7 @@ window.initSearch = function(rawSearchIndex) {
|
|||||||
var description = document.createElement("div");
|
var description = document.createElement("div");
|
||||||
description.className = "desc";
|
description.className = "desc";
|
||||||
var spanDesc = document.createElement("span");
|
var spanDesc = document.createElement("span");
|
||||||
spanDesc.innerText = item.desc + "\u00A0";
|
spanDesc.insertAdjacentHTML("beforeend", item.desc);
|
||||||
|
|
||||||
description.appendChild(spanDesc);
|
description.appendChild(spanDesc);
|
||||||
wrapper.appendChild(description);
|
wrapper.appendChild(description);
|
||||||
|
Loading…
Reference in New Issue
Block a user