diff --git a/manifest.json b/manifest.json index 508e589..9dbd57a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "id": "apple-books-import-highlights", "name": "Apple Books - Import Highlights", - "version": "1.2.4", + "version": "1.2.5", "minAppVersion": "0.15.0", "description": "Import your Apple Books highlights and notes to Obsidian.", "author": "bandantonio", "authorUrl": "https://github.com/bandantonio", "isDesktopOnly": true -} +} \ No newline at end of file diff --git a/package.json b/package.json index 7ccc668..2cbaf01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-apple-books-highlights-plugin", - "version": "1.2.4", + "version": "1.2.5", "description": "Import highlights and notes from your Apple Books to Obsidian", "main": "main.js", "scripts": { @@ -58,4 +58,4 @@ "dayjs": "^1.11.10", "handlebars": "^4.7.8" } -} +} \ No newline at end of file diff --git a/src/methods/renderHighlightsTemplate.ts b/src/methods/renderHighlightsTemplate.ts index a8ea572..9a4150a 100644 --- a/src/methods/renderHighlightsTemplate.ts +++ b/src/methods/renderHighlightsTemplate.ts @@ -1,5 +1,7 @@ import * as Handlebars from 'handlebars'; import { ICombinedBooksAndHighlights } from '../types'; +import 'src/utils/helpers'; + export const renderHighlightsTemplate = async (highlight: ICombinedBooksAndHighlights, template: string) => { const compiledTemplate = Handlebars.compile(template); const renderedTemplate = compiledTemplate(highlight); diff --git a/test/renderHighlightsTemplate.spec.ts b/test/renderHighlightsTemplate.spec.ts index c00293a..a8e2daf 100644 --- a/test/renderHighlightsTemplate.spec.ts +++ b/test/renderHighlightsTemplate.spec.ts @@ -8,7 +8,6 @@ import { aggregatedHighlights } from './mocks/aggregatedDetailsData'; import { rawCustomTemplateMock } from './mocks/rawTemplates'; import { defaultTemplateMock, renderedCustomTemplateMock } from './mocks/renderedTemplate'; import defaultTemplate from '../src/template'; -import '../src/utils/helpers'; describe('renderHighlightsTemplate', () => { const helpers = Handlebars.helpers;