From 18690ee91e3ca5d8fbc8f76ea89d8bd9c78fc0e5 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 29 Mar 2023 21:16:16 +0200 Subject: [PATCH] fix(reoff-cite): update deps and slight thingies --- src/lib/reoff-cite.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/lib/reoff-cite.ts b/src/lib/reoff-cite.ts index cc0e6a4..1ca0aed 100755 --- a/src/lib/reoff-cite.ts +++ b/src/lib/reoff-cite.ts @@ -2,14 +2,11 @@ import { Root } from 'ooxast' import { VFile } from 'vfile' import { Data as CSL } from 'csl-json' import { findCitations, Options } from 'ooxast-util-citations' +import { Plugin } from 'unified' -// export interface ReoffCiteOptions { -// bibliography?: CSL[] -// type: 'mendeley' | 'word' | 'citavi' | 'zotero' | 'endnote' -// log?: boolean -// } - -export default function reoffCite(options: Options = { type: 'zotero' }) { +export default function reoffCite( + options: Options = { type: 'zotero' }, +): ReturnType> { return (tree: Root, vfile: VFile) => { if (options.log !== false) { console.log(vfile.data.bibliography)