9 Commits
Author SHA1 Message Date
simple-mindedandGeneralTony007 fe0d3496e9 fix: preserve Unicode whitespace in inline link destinations (#4249)
* fix: preserve Unicode whitespace in inline link destinations

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix: preserve Unicode whitespace in inline link destinations

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix: preserve Unicode whitespace in inline link destinations

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: migrate reviewed regression to native fixture

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: migrate reviewed regression to native fixture

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: migrate reviewed regression to native fixture

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: migrate reviewed regression to native fixture

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: remove superseded regression after native fixture migration

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: remove superseded regression after native fixture migration

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: remove unrelated ASCII-tab link destination fixture

Remove the input identified in review. The existing parser mismatch is outside this Unicode-whitespace change; the corresponding expected output is removed in the companion commit.

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: align link destination output with removed ASCII-tab case

Remove only the expected output corresponding to the reviewed ASCII-tab input. Unicode cases remain unchanged; this does not fix the separate parser mismatch. Full local npm test passed: 2039 specs and 256 unit tests.

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-27 15:18:02 -07:00
generaltony007andGeneralTony007 1e1190241b fix: allow trailing tabs after closing code fences (#4241)
* fix: allow trailing tabs after closing code fences

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix: allow trailing tabs after closing code fences

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix: allow trailing tabs after closing code fences

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix: allow trailing tabs after closing code fences

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* fix: allow trailing tabs after closing code fences

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: remove duplicate CommonMark fence output

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: remove duplicate CommonMark fence input

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-19 00:06:06 -07:00
generaltony007andGeneralTony007 04f1c6e518 fix: preserve literal entities in image alt text (#4232)
* fix: preserve literal entities in image alt text

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: cover image literal entities and text renderer compatibility

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: add image alt literal entity inputs

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: assert literal entity image alt output

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-17 08:38:15 -07:00
generaltony007andGeneralTony007 171f177a42 perf: skip paragraph lookahead for initial quoted code (#4233)
* fix: skip paragraph lookahead for initial quoted code

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: preserve quoted paragraph continuation boundary

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: cover alternating indented code and quoted code

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-17 08:37:23 -07:00
generaltony007andGeneralTony007 a1ddc722e7 fix: honor the CLI end-of-options marker (#4230)
* fix: honor the CLI end-of-options marker

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: cover hyphen-prefixed input files after --

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* docs: document the CLI option terminator

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-17 08:24:41 -07:00
generaltony007andgeneraltony007 a0925cca02 perf: avoid scanning table bodies for header-only decisions (#4213)
* perf: reject mismatched table headers before scanning body rows

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

* perf: share header-only GFM table lookahead

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: cover table header rejection before body matching

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-16 10:53:17 -07:00
generaltony007andGeneralTony007 1c5969e395 fix: keep rejected table candidates in the preceding paragraph (#4218)
* fix: keep rejected table candidates in the preceding paragraph

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: preserve inline queue and custom paragraph tokenizers

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: cover rejected GFM table candidates and valid controls

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

* test: record reference HTML for rejected table continuation

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: GeneralTony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-16 09:34:42 -07:00
generaltony007andgeneraltony007 5e35708f3f fix(types): preserve custom output types in tokenizer overrides (#4214)
* fix(types): preserve custom output types in tokenizer overrides

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

* test(types): cover generic tokenizer context and string defaults

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-16 09:31:17 -07:00
generaltony007andgeneraltony007 9a26ae9cee fix: Fix bracket escapes inside code spans in link text being stripped (#4205)
* Fix bracket escapes inside code spans in link text being stripped

The link label matcher consumes backslash-escaped brackets, and outputLink then removes those escapes from the label text. It did so over the whole label, so a backslash-escaped bracket inside a code span also lost its backslash even though code span content is literal: [`\]`] rendered <code>]</code> instead of <code>\]</code>.

Scan the label and copy code spans through verbatim, unescaping brackets only outside of them.

Refs #4176

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

* Add spec tests for bracket escapes in link text code spans

Refs #4176

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

* Add expected HTML for bracket escapes in link text code spans

Refs #4176

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>

---------

Co-authored-by: generaltony007 <144252170+GeneralTony007@users.noreply.github.com>
2026-11-13 11:22:38 -07:00