Skip to content

[rejour-relatex]: texastcontenttype is not always assignable as a child of comma... #81

@github-actions

Description

@github-actions

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions