Add search highlighting

This commit is contained in:
Elnu 2023-07-23 15:00:31 -07:00
parent b20cdaf819
commit 3965b59893
3 changed files with 33 additions and 7 deletions

View file

@ -1,3 +1,3 @@
{{- define "definition" -}}
{{ if .PartOfSpeech }}<small><chip>{{ .PartOfSpeech }}</chip></small><br>{{ end }}{{ .Definition -}}
{{ if .PartOfSpeech }}<small><chip>{{ .PartOfSpeech }}</chip></small><br>{{ end }}{{ highlight .Definition -}}
{{ end }}