1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed keyword highlighting bug and other minor issues

This commit is contained in:
Laurent Cozic
2019-01-09 17:33:52 +00:00
parent 83281197f1
commit 3b719ce53b
2 changed files with 7 additions and 8 deletions

View File

@ -415,6 +415,7 @@ class MdToHtml {
}
applyHighlightedKeywords_(body, keywords) {
if (!keywords.length) return body;
return StringUtils.surroundKeywords(keywords, body, '<span class="highlighted-keyword">', '</span>');
}