Skip to content

fix(harper-typst): crash#3366

Merged
elijah-potter merged 1 commit into
masterfrom
feature/typst-crash
May 13, 2026
Merged

fix(harper-typst): crash#3366
elijah-potter merged 1 commit into
masterfrom
feature/typst-crash

Conversation

@elijah-potter
Copy link
Copy Markdown
Collaborator

Issues

Fixes #2126

Description

This fixes a Typst parser crash caused by #show "a": "a" emitting show-rule tokens out of source order. The translator now parses the show-rule selector before the transform so downstream linters receive monotonically ordered spans and RepeatedWords no longer tries to construct an invalid span.

A regression test covers the reported input and asserts that the emitted token spans preserve source order.

How Has This Been Tested?

Additional unit tests

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have considered splitting this into smaller pull requests.

@elijah-potter elijah-potter force-pushed the feature/typst-crash branch from 62272a0 to fb7399e Compare May 12, 2026 20:50
@elijah-potter elijah-potter added this pull request to the merge queue May 13, 2026
Merged via the queue into master with commit ad976fd May 13, 2026
11 checks passed
@elijah-potter elijah-potter deleted the feature/typst-crash branch May 13, 2026 14:48
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.

Typst show rule causes crash

1 participant