Use <strong> instead of <b>

This commit is contained in:
daudix
2024-07-23 05:44:23 +03:00
parent 2292081c1f
commit a16f02e7a2
2 changed files with 5 additions and 5 deletions

View File

@ -319,11 +319,11 @@
div { div {
margin-top: 0.5rem; margin-top: 0.5rem;
border-top: 0.0625rem solid var(--fg-muted-2); border-top: max(1px, 0.0625rem) solid var(--fg-muted-2);
padding-top: 0.25rem; padding-top: 0.25rem;
color: var(--fg-muted-5); color: var(--fg-muted-5);
b { strong {
color: var(--fg-color); color: var(--fg-color);
} }
} }

View File

@ -109,15 +109,15 @@
startIndex = word[2]; startIndex = word[2];
} }
// add <em/> around search terms // add <strong> around search terms
if (word[1] === TERM_WEIGHT) { if (word[1] === TERM_WEIGHT) {
teaser.push("<b>"); teaser.push("<strong>");
} }
startIndex = word[2] + word[0].length; startIndex = word[2] + word[0].length;
teaser.push(body.substring(word[2], startIndex)); teaser.push(body.substring(word[2], startIndex));
if (word[1] === TERM_WEIGHT) { if (word[1] === TERM_WEIGHT) {
teaser.push("</b>"); teaser.push("</strong>");
} }
} }
teaser.push("…"); teaser.push("…");