You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Maybe add a new type to texast: citation.// TODO: [rejour-rehype/citations] make checks for the kind of citations used.console.log(node.attributes)switch(node.attributes.refType){case'bibr': {returnj(node,'command',{name: j.citationAnalyzer(node)||'autocite'},[{type: 'commandArg',children: [{type: 'text',value:
node.attributes.rid||node.children.map((node)=>{//@ts-ignoreconstn=node.value.replace(/[\[\], ]/g,'')returnn ? `bib${n}` : undefined}).filter((n)=>!!n).join(','),},],},])}case'fig': {returnj(node,'command',{name: 'autocite'},[{type: 'commandArg',children: [{type: 'text',//@ts-expect-errorvalue: 'bib'+node.children[0]?.value?.replace(/[\[\]]/g,''),},],},])}case'fn': {constfnContent=j.footnotes[// TODO: [rejour-relatex]: make footnote identification less arbitrary, like a counter or something//@ts-ignoreparseInt(node.children?.[0]?.value?.replace(/[\[\]]/g,''))-1]asanyreturnj(node,'command',{name: 'footnote'},[{type: 'commandArg',children:
fnContent.type==='paragraph' ? fnContent.children : [fnContent],},])}
ac31ceffe8d80dcdddfc216547383e42440ab5fa
The text was updated successfully, but these errors were encountered:
[rejour-relatex]: make footnote identification less arbitrary, like a counter or something
@ts-ignore
https://github.com/JournalOfTrialAndError/JOTE/blob/4b14de45df7a9618fe579a3052560971317727ef/libs/rejour/jast-util-to-texast/src/lib/handlers/xref.ts#L90
ac31ceffe8d80dcdddfc216547383e42440ab5fa
The text was updated successfully, but these errors were encountered: