Skip to content

Commit

Permalink
fix(reoff-cite): update deps and slight thingies
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Mar 29, 2023
1 parent 774e033 commit 18690ee
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/lib/reoff-cite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Plugin<[Options | void | undefined], Root, Root>> {
return (tree: Root, vfile: VFile) => {
if (options.log !== false) {
console.log(vfile.data.bibliography)
Expand Down

0 comments on commit 18690ee

Please sign in to comment.