Skip to content

Commit

Permalink
feat(org-cite): add org-cite types
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Mar 19, 2022
1 parent 6f81322 commit 6c42331
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion packages/uniorg/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export type ObjectType =
| FootnoteReference
| LatexFragment
| Entity
| TableCell;
| TableCell
| Citation
| CitationElement;

export type OrgNode = GreaterElementType | ElementType | ObjectType;

Expand Down Expand Up @@ -312,6 +314,23 @@ export interface Link extends RecursiveObject {
path: string;
}

export interface Citation extends RecursiveObject {
type: 'cite';
style: string;
variant: string;
commonPrefix: string;
commonSuffix: string;
rawLink: string;
children: CitationElement[];
}

export interface CitationElement extends RecursiveObject {
type: 'citation-element';
prefix: string;
citeKey: string;
locator: string;
suffix: string;
}
export interface Timestamp extends Object {
type: 'timestamp';
timestampType:
Expand Down

0 comments on commit 6c42331

Please sign in to comment.