rehype-citation
Version:
rehype plugin to add citation and bibliography from bibtex files
22 lines (21 loc) • 1.12 kB
TypeScript
export const isNode: boolean;
export function readFile(path: any): Promise<string>;
export function isValidHttpUrl(str: string): boolean;
export function getBibliography(options: import('./generator.js').Options, file: import('vfile').VFile): Promise<string[]>;
export function loadCSL(Cite: any, format: string, root?: string): Promise<string>;
export function loadLocale(Cite: any, format: string, root?: string): Promise<string>;
export function getCitationFormat(citeproc: any): "note" | "author-date" | "author" | "numeric" | "label";
export function getSortedRelevantRegistryItems(citeproc: any, relevantIds: string[], sorted: boolean): any;
export function split(str: string, index: number): string[];
export function isSameAuthor(item: any, item2: any): boolean;
export function getFrontmatterField(file: {
data?: FrontmatterSource;
}, fieldName: string): any;
export function getBibliographyEntryText(citeproc: any, id: string): string;
export type FrontmatterSource = {
matter?: Record<string, any>;
frontmatter?: Record<string, any>;
astro?: {
frontmatter?: Record<string, any>;
};
};