Skip to content

Missing position property for autolinks #19

Description

@DMartens

Initial checklist

Affected package

mdast-util-gfm-autolink-literal@latest

Steps to reproduce

https://stackblitz.com/edit/stackblitz-starters-atlpfbvy?file=index.js

Hello [World][https://example.com]

Actual behavior

The three child nodes in the paragraph node do not have a position property.

Expected behavior

The nodes have a position property. As far as I understand is the position may only be unset if there is no corresponding text in the source.

Runtime

node@25.6.0

Package manager

pnpm@10.27.0

Operating system

Arch Linux

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤞 phase/openPost is being triaged manually

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions