File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1024,7 +1024,7 @@ window.initSearch = function(rawSearchIndex) {
1024
1024
var description = document . createElement ( "div" ) ;
1025
1025
description . className = "desc" ;
1026
1026
var spanDesc = document . createElement ( "span" ) ;
1027
- spanDesc . innerText = item . desc + "\u00A0" ;
1027
+ spanDesc . insertAdjacentHTML ( "beforeend" , item . desc ) ;
1028
1028
1029
1029
description . appendChild ( spanDesc ) ;
1030
1030
wrapper . appendChild ( description ) ;
Original file line number Diff line number Diff line change
1
+ // This test is to ensure that the codeblocks are correctly rendered in the search results.
2
+ goto: file://|DOC_PATH|/test_docs/index.html?search=some_more_function
3
+ // Waiting for the search results to appear...
4
+ wait-for: "#titles"
5
+ assert: (".search-results .desc code", "format!")
You can’t perform that action at this time.
0 commit comments