Use <strong> instead of <b>
This commit is contained in:
@ -319,11 +319,11 @@
|
||||
|
||||
div {
|
||||
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;
|
||||
color: var(--fg-muted-5);
|
||||
|
||||
b {
|
||||
strong {
|
||||
color: var(--fg-color);
|
||||
}
|
||||
}
|
||||
|
@ -109,15 +109,15 @@
|
||||
startIndex = word[2];
|
||||
}
|
||||
|
||||
// add <em/> around search terms
|
||||
// add <strong> around search terms
|
||||
if (word[1] === TERM_WEIGHT) {
|
||||
teaser.push("<b>");
|
||||
teaser.push("<strong>");
|
||||
}
|
||||
startIndex = word[2] + word[0].length;
|
||||
teaser.push(body.substring(word[2], startIndex));
|
||||
|
||||
if (word[1] === TERM_WEIGHT) {
|
||||
teaser.push("</b>");
|
||||
teaser.push("</strong>");
|
||||
}
|
||||
}
|
||||
teaser.push("…");
|
||||
|
Reference in New Issue
Block a user