File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 66*/
77
88import { kHtmlEmptyPostProcessResult } from "../../command/render/constants.ts" ;
9+ import {
10+ PandocInputTraits ,
11+ RenderedFormat ,
12+ } from "../../command/render/types.ts" ;
913import { Format , Metadata } from "../../config/types.ts" ;
1014import { bibliographyCslJson } from "../../core/bibliography.ts" ;
1115import {
@@ -29,19 +33,23 @@ export function metadataPostProcessor(
2933 format : Format ,
3034 offset ?: string ,
3135) {
32- return async ( doc : Document , inputMetadata : Metadata ) => {
36+ return async ( doc : Document , options : {
37+ inputMetadata : Metadata ;
38+ inputTraits : PandocInputTraits ;
39+ renderedFormats : RenderedFormat [ ] ;
40+ } ) => {
3341 if ( googleScholarEnabled ( format ) ) {
3442 const { csl, extras } = documentCSL (
3543 input ,
36- inputMetadata ,
44+ options . inputMetadata ,
3745 "webpage" ,
3846 format . pandoc [ "output-file" ] ,
3947 offset ,
4048 ) ;
4149 const documentMetadata = googleScholarMeta ( csl , extras ) ;
4250 const referenceMetadata = await googleScholarReferences (
4351 input ,
44- inputMetadata ,
52+ options . inputMetadata ,
4553 ) ;
4654 [ ...documentMetadata , ...referenceMetadata ] . forEach ( ( meta ) => {
4755 writeMetaTag ( meta . name , meta . content , doc ) ;
You can’t perform that action at this time.
0 commit comments