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 { constructContentComponentBookmarkMutation } from '@/helpers/update-content-bookmark-mutation';
|
||||||
import { useMutation } from '@vue/apollo-composable';
|
import { useMutation } from '@vue/apollo-composable';
|
||||||
import { HighlightNode } from '@/__generated__/graphql';
|
import { HighlightNode } from '@/__generated__/graphql';
|
||||||
import * as Mark from 'mark.js';
|
import Mark from 'mark.js';
|
||||||
import highlightSidebar from '@/helpers/highlight-sidebar';
|
import highlightSidebar from '@/helpers/highlight-sidebar';
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
|
@ -153,7 +153,6 @@ watch(
|
||||||
() => filteredHighlights.value.length,
|
() => filteredHighlights.value.length,
|
||||||
() => {
|
() => {
|
||||||
for (const paragraph of paragraphs.value) {
|
for (const paragraph of paragraphs.value) {
|
||||||
console.log(paragraph);
|
|
||||||
const instance = new Mark(paragraph);
|
const instance = new Mark(paragraph);
|
||||||
instance.unmark();
|
instance.unmark();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { DirectiveBinding } from 'vue';
|
||||||
import * as rangy from 'rangy';
|
import * as rangy from 'rangy';
|
||||||
import 'rangy/lib/rangy-textrange';
|
import 'rangy/lib/rangy-textrange';
|
||||||
import log from 'loglevel';
|
import log from 'loglevel';
|
||||||
import * as Mark from 'mark.js';
|
import Mark from 'mark.js';
|
||||||
import { ContentBlockNode } from '@/__generated__/graphql';
|
import { ContentBlockNode } from '@/__generated__/graphql';
|
||||||
import ContentBlock from '@/components/ContentBlock.vue';
|
import ContentBlock from '@/components/ContentBlock.vue';
|
||||||
import popover from '@/helpers/popover';
|
import popover from '@/helpers/popover';
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"checkJs": false,
|
"checkJs": false,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
"lib": ["es2017", "dom"],
|
"lib": ["es2017", "dom"],
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"module": "es2022",
|
"module": "es2022",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue