[rejour-relatex]: texastcontenttype is not always assignable as a child of commandArg
@ts-expect-error texastcontenttype is not always assignable as a child of commandArg
children: fnContent, //fnContent.type === 'paragraph' ? fnContent.children : [fnContent],
|
// TODO: [rejour-relatex]: texastcontenttype is not always assignable as a child of commandArg |
])
}
case 'fn': {
const fnContent =
j.footnotes[
// prettier-ignore
// TODO: [rejour-relatex]: make footnote identification less arbitrary, like a counter or something
// @ts-expect-error it is text, it has value
(parseInt(node.children?.[0]?.value?.replace(/[[\]]/g, '')) - 1).toString()
]
return j(node, 'command', { name: 'footnote' }, [
{
type: 'commandArg',
// TODO: [rejour-relatex]: texastcontenttype is not always assignable as a child of commandArg
// @ts-expect-error texastcontenttype is not always assignable as a child of commandArg
children: fnContent, //fnContent.type === 'paragraph' ? fnContent.children : [fnContent],
},
])
}
decd3690ac73b6495fcaaf969827ad76e9938d1f
[rejour-relatex]: texastcontenttype is not always assignable as a child of commandArg
@ts-expect-error texastcontenttype is not always assignable as a child of commandArg
children: fnContent, //fnContent.type === 'paragraph' ? fnContent.children : [fnContent],
parsers/libs/jast/jast-util-to-texast/src/lib/handlers/xref.ts
Line 140 in 0ceaea7
decd3690ac73b6495fcaaf969827ad76e9938d1f