Fix wrong import syntax for mark.js

This commit is contained in:
Ramon Wenger 2024-01-22 23:16:59 +01:00
parent c180aa94f5
commit 2ffbd62e4f
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ import { useStore } from 'vuex';
import { constructContentComponentBookmarkMutation } from '@/helpers/update-content-bookmark-mutation';
import { useMutation } from '@vue/apollo-composable';
import { HighlightNode } from '@/__generated__/graphql';
import * as Mark from 'mark.js';
import Mark from 'mark.js';
import highlightSidebar from '@/helpers/highlight-sidebar';
export interface Props {
@ -153,7 +153,6 @@ watch(
() => filteredHighlights.value.length,
() => {
for (const paragraph of paragraphs.value) {
console.log(paragraph);
const instance = new Mark(paragraph);
instance.unmark();
}

View File

@ -2,7 +2,7 @@ import { DirectiveBinding } from 'vue';
import * as rangy from 'rangy';
import 'rangy/lib/rangy-textrange';
import log from 'loglevel';
import * as Mark from 'mark.js';
import Mark from 'mark.js';
import { ContentBlockNode } from '@/__generated__/graphql';
import ContentBlock from '@/components/ContentBlock.vue';
import popover from '@/helpers/popover';

View File

@ -3,6 +3,7 @@
"allowJs": true,
"checkJs": false,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"lib": ["es2017", "dom"],
"target": "es6",
"module": "es2022",