Commit 5cee4903 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Fix markjs issues

parent a3425092
......@@ -223,10 +223,10 @@ export default {
if (this.scope && this.scope.includes("f")) {
let instance = new Mark(this.$refs.article_content)
if (/[_%|]/.test(this.queryPattern)) {
instance.markRegExp(new RegExp(this.queryPattern), {separateWordSearch:true});
instance.markRegExp(new RegExp(this.queryPattern), {acrossElements: true, separateWordSearch:false});
}
else {
instance.mark(this.queryPattern, {separateWordSearch:true, accuracy: 'exact', wildcards: 'enabled'});
instance.mark(this.queryPattern, {acrossElements: true, separateWordSearch:false, accuracy: 'exact', wildcards: 'enabled'});
}
}
......
......@@ -125,7 +125,6 @@ q {
.highlighted, mark {
background-color: var(--v-tertiary-darken1);
border-radius: 5px;
}
h3 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment