Skip to content

test(parser): specify position-safe GFM autolink behavior - #155

Merged
luojiyin1987 merged 1 commit into
masterfrom
test/document-gfm-autolink-behavior
Nov 4, 2026
Merged

luojiyin1987 merged 1 commit into
masterfrom
test/document-gfm-autolink-behavior

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Background

The parser disables the GFM autolink-literal transform. That transform can create nodes without source positions.
Tokenizer-based autolinks remain enabled. The quoted www.google.com case needs a direct regression test and clear documentation.

See remark-gfm issue #16.

Changes

  • Test tokenizer recognition of www.example.com in the built package.
  • Test that quoted www.google.com remains positioned text.
  • Test source entry parity between parseMd and parseMdWithSourceMap.
  • Document the supported autolinks and the quoted URL behavior.

Compatibility

Runtime behavior does not change. The current GFM configuration remains in place.

Validation

  • pnpm test passed: 2026 built tests and 11 source tests.
  • pnpm run lint passed.
  • pnpm run test:coverage passed. The report still maps to src/.
  • API reports did not change.
  • git diff --check passed.

No sensitive data was added or redacted.

@luojiyin1987
luojiyin1987 merged commit 42fbdc7 into master Nov 4, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant