mirror of
https://github.com/wassname/template.git
synced 2026-06-29 10:29:01 +08:00
11 lines
308 B
JavaScript
11 lines
308 B
JavaScript
import { collect_citations } from '../helpers/citation.js';
|
|
|
|
export default function(dom, data) {
|
|
const citations = new Set(data.citations);
|
|
const newCitations = collect_citations(dom);
|
|
for (const citation of newCitations) {
|
|
citations.add(citation);
|
|
}
|
|
data.citations = Array.from(citations);
|
|
}
|