We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b1b94 commit d6a0cb1Copy full SHA for d6a0cb1
src/functions/autocomplete/oramaAutoComplete.ts
@@ -7,14 +7,14 @@ import { truncate } from '../../util/truncate.js';
7
8
function resolveAutocompleteName(element: OramaSearchResult) {
9
if (element.type === 'page') {
10
- return element.content;
+ return `# ${element.content}`;
11
}
12
13
if (element.type === 'heading') {
14
- return `# ${element.content}`;
+ return `## ${element.content}`;
15
16
17
- return `[...] ${element.content}`;
+ return element.content;
18
19
20
function autocompleteMap(elements: OramaSearchResults) {
0 commit comments