Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
github-actions bot opened this issue Feb 25, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

[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

@github-actions github-actions bot added the todo label Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants