- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Open
Labels
Description
[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