rehype-citation
Version:
rehype plugin to add citation and bibliography from bibtex files
17 lines (16 loc) • 347 B
JavaScript
const configs = {};
export function add(ref, config) {
configs[ref] = config;
}
export function get(ref) {
return configs[ref];
}
export function has(ref) {
return Object.prototype.hasOwnProperty.call(configs, ref);
}
export function remove(ref) {
delete configs[ref];
}
export function list() {
return Object.keys(configs);
}