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)