Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.
ooxast util to visit in text office citations.
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
pnpm add ooxast-util-citations
# or with yarn
# yarn add ooxast-util-citations
# or with npm
# npm install ooxast-util-citations
Construct a citation for Mendeley or Zotero.
constructCitation(
curr: Citation,
type: string,
index: number,
bibliography?: Data[]): object;
Name | Type | Description |
---|---|---|
curr |
Citation |
The citation to construct |
type |
string |
The type of citation to construct |
index |
number |
The index of the citation |
bibliography? |
Data [] |
The bibliography to use |
object
The constructed citation and instruction
| Member | Type |
| :--------- | :------------------------------------------------ | --------------------------------------------- |
| citation
| MendeleyCitation
| ZoteroCitation
|
| instr
| string
|
Defined in: lib/ooxast-util-citations.ts:197
findCitations(tree: Node<Data>, vfile?: VFile, options?: Options): Root;
Name | Type |
---|---|
tree |
Node <Data > |
vfile? |
VFile |
options? |
Options |
Root
Defined in: lib/ooxast-util-citations.ts:28
Const
string
[]
Defined in: lib/ooxast-util-citations.ts:21
string
Defined in: lib/types.ts:6
Defined in: lib/types.ts:7
string
Defined in: lib/types.ts:9
Defined in: lib/types.ts:8
string
Defined in: lib/types.ts:18
string
Defined in: lib/types.ts:22
Data
Defined in: lib/types.ts:19
string
Defined in: lib/types.ts:23
string
Defined in: lib/types.ts:24
string
Defined in: lib/types.ts:20
string
Defined in: lib/types.ts:21
string
Defined in: lib/types.ts:52
string
Defined in: lib/types.ts:53
string
Defined in: lib/types.ts:54
string
Defined in: lib/types.ts:40
Defined in: lib/types.ts:41
Defined in: lib/types.ts:42
Defined in: lib/types.ts:43
string
Defined in: lib/types.ts:44
string
Defined in: lib/types.ts:58
Data
Defined in: lib/types.ts:59
string
[]
Defined in: lib/types.ts:60
number
Defined in: lib/types.ts:48
Data
[]
Defined in: lib/ooxast-util-citations.ts:23
boolean
Defined in: lib/ooxast-util-citations.ts:24
"endnote"
|"citavi"
|"mendeley"
|"word"
|"zotero"
Defined in: lib/ooxast-util-citations.ts:25
string
Defined in: lib/types.ts:14
number
Defined in: lib/types.ts:13
string
Defined in: lib/types.ts:28
Defined in: lib/types.ts:29
Defined in: lib/types.ts:30
string
Defined in: lib/types.ts:31
string
Defined in: lib/types.ts:36
number
Defined in: lib/types.ts:35
string
Defined in: lib/types.ts:37
(
string
|Citation
)[]
Defined in: lib/types.ts:3
GPL-3.0-or-later © Thomas F. K. Jorna