mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
HTML Search: search snipets should not be folded
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -47,6 +47,7 @@ Bugs fixed
|
||||
``-``, ``~``, and ``**``). Patch by Adam Turner.
|
||||
* #10460: logging: Always show node source locations as absolute paths.
|
||||
* HTML Search: HTML tags are displayed as a part of object name
|
||||
* HTML Search: search snipets should not be folded
|
||||
* #10520: HTML Theme: Fix use of sidebar classes in ``agogo.css_t``.
|
||||
* #6679: HTML Theme: Fix inclusion of hidden toctrees in the agogo theme.
|
||||
* #10566: HTML Theme: Fix enable_search_shortcuts does not work
|
||||
|
||||
@@ -519,7 +519,7 @@ const Search = {
|
||||
|
||||
let summary = document.createElement("p");
|
||||
summary.classList.add("context");
|
||||
summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
|
||||
summary.textContent = top + text.substr(startWithContext, 240).trim() + tail;
|
||||
|
||||
highlightWords.forEach((highlightWord) =>
|
||||
_highlightText(summary, highlightWord, "highlighted")
|
||||
|
||||
Reference in New Issue
Block a user