Fix wrong import syntax for mark.js
This commit is contained in:
parent
c180aa94f5
commit
2ffbd62e4f
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
"allowJs": true,
|
||||
"checkJs": false,
|
||||
"resolveJsonModule": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"lib": ["es2017", "dom"],
|
||||
"target": "es6",
|
||||
"module": "es2022",
|
||||
|
|
|
|||
Loading…
Reference in New Issue