Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam 2021-11-20 21:34:34 +01:00
commit 1dce96b4c1
2 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,7 @@ table td, table th {
} }
code, kbd, pre, samp { code, kbd, pre, samp {
font-family: var(--monospace-font-family); font-family: var(--monospace-font-family) !important;
} }
.input-group-text { .input-group-text {

View File

@ -83,8 +83,12 @@ function findResultsWithExpression(expression, searchContext) {
throw new Error(`Can't find note path for note ${JSON.stringify(note.getPojo())}`); throw new Error(`Can't find note path for note ${JSON.stringify(note.getPojo())}`);
} }
if (notePathArray.includes("hidden")) {
return null;
}
return new SearchResult(notePathArray); return new SearchResult(notePathArray);
}); }).filter(Boolean);
for (const res of searchResults) { for (const res of searchResults) {
res.computeScore(searchContext.highlightedTokens); res.computeScore(searchContext.highlightedTokens);