Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Språksamlingane
beta.ordbok.uib.no
Commits
535e1a4d
Commit
535e1a4d
authored
May 04, 2022
by
Henrik Askjer
Browse files
Merge branch 'markjs-whitespace' into 'prod'
Fix markjs issues See merge request spraksamlingane/beta.ordbok.uib.no!184
parents
a3425092
5cee4903
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/Article.vue
View file @
535e1a4d
...
...
@@ -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
:
tru
e
}
);
instance
.
markRegExp
(
new
RegExp
(
this
.
queryPattern
),
{
acrossElements
:
true
,
separateWordSearch
:
fals
e
}
);
}
else
{
instance
.
mark
(
this
.
queryPattern
,
{
separateWordSearch
:
tru
e
,
accuracy
:
'
exact
'
,
wildcards
:
'
enabled
'
}
);
instance
.
mark
(
this
.
queryPattern
,
{
acrossElements
:
true
,
separateWordSearch
:
fals
e
,
accuracy
:
'
exact
'
,
wildcards
:
'
enabled
'
}
);
}
}
...
...
src/components/Definition.vue
View file @
535e1a4d
...
...
@@ -125,7 +125,6 @@ q {
.highlighted
,
mark
{
background-color
:
var
(
--v-tertiary-darken1
);
border-radius
:
5px
;
}
h3
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment