Skip to content

Footnotes: the first reference in x[^1][^2] stays literal #567

Closed

Description

@onmax

Environment

Node v24.21.0, Linux, no framework

Comark Version

main (439c6f0)

Reproduction

https://comark.dev/play#code/q4iOM4yNjjOK5eICsawU8vNSuUB8K4WS8nwA

Description

In x[^1][^2], the first reference stays as text and footnote 1 drops out of the list. x [^1] [^2] works.

The span rule leaves [^1] to the link parser because a [ follows it (components.ts L485), and the link parser finds no ^2 reference. Happy to open a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions