diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 616a489c1..c76a4271a 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -58,7 +58,7 @@ table td, table th { } code, kbd, pre, samp { - font-family: var(--monospace-font-family); + font-family: var(--monospace-font-family) !important; } .input-group-text { diff --git a/src/services/search/services/search.js b/src/services/search/services/search.js index 5a0155953..1e9c3479b 100644 --- a/src/services/search/services/search.js +++ b/src/services/search/services/search.js @@ -83,8 +83,12 @@ function findResultsWithExpression(expression, searchContext) { throw new Error(`Can't find note path for note ${JSON.stringify(note.getPojo())}`); } + if (notePathArray.includes("hidden")) { + return null; + } + return new SearchResult(notePathArray); - }); + }).filter(Boolean); for (const res of searchResults) { res.computeScore(searchContext.highlightedTokens);