Skip to content

[TASK] Migrate directives unblocked by the logger-info fix - #1385

Merged
linawolf merged 1 commit into
task/directive-process-pass-optionsfrom
task/migrate-more-directives
Sep 5, 2026
Merged

[TASK] Migrate directives unblocked by the logger-info fix#1385
linawolf merged 1 commit into
task/directive-process-pass-optionsfrom
task/migrate-more-directives

Conversation

@linawolf

@linawolf linawolf commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Continues the #1373 migration now that #1383 landed. Migrates the
directives that don't hit #1378's known ordering hazards -- Card
Group/Grid, Accordion, Table, LaTeXMain.

Card, AccordionItem, CardHeader/Image/Footer, and ListTable turned
out to be blocked by two ordering hazards #1378 didn't cover; filed
as a comment there rather than migrated.

Stacked on #1388: this batch needed a directive's :class: option
applied generically the way the old dispatch's postProcessNode()
always did, which #1388 fixes underneath this branch.

Signed-off-by: linawolf
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01PP4LkejR5PSubbhNmF4RkT

linawolf pushed a commit that referenced this pull request Sep 5, 2026
Continues the #1373 migration. Both directives resolve their image
path relative to the current document's directory -- the one piece
of BlockContext access createNode() couldn't reach until now.
Safe to snapshot at parse time, unlike e.g. the code-block default
language: a document's own path never changes mid-parse.

DirectiveSourceLocation gains a documentDirectory field for this.

Migrating ImageDirective also exposed a second, bigger gap:
DirectiveProcessPass only ever merged `:class:` onto the returned
node, never the other scalar options (width, alt, ...) the old
dispatch's postProcessNode() always applied automatically. Fixed
there directly, replacing the narrower parse-time-only `:class:` fix
from PR #1385.

Adds an integration fixture locking in existing, unaffected behavior:
an image path inside `.. include::`d content resolves relative to
whichever document contains the include, not the included snippet's
own location.

Signed-off-by: linawolf
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PP4LkejR5PSubbhNmF4RkT
Continues the #1373 migration now that #1383 landed. Migrates the
directives that don't hit #1378's known ordering hazards -- Card
Group/Grid, Accordion, Table, LaTeXMain.

Card, AccordionItem, CardHeader/Image/Footer, and ListTable turned
out to be blocked by two ordering hazards #1378 didn't cover; filed
as a comment there rather than migrated.

Stacked on #1388: this batch needed a directive's `:class:` option
applied generically the way the old dispatch's postProcessNode()
always did, which #1388 fixes underneath this branch.

Signed-off-by: linawolf
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PP4LkejR5PSubbhNmF4RkT
@linawolf
linawolf force-pushed the task/migrate-more-directives branch from 72ea2e9 to 82b9298 Compare September 5, 2026 08:23
@linawolf
linawolf changed the base branch from main to task/directive-process-pass-options September 5, 2026 08:23
@linawolf
linawolf merged commit 75a7994 into task/directive-process-pass-options Sep 5, 2026
58 checks passed
@linawolf
linawolf deleted the task/migrate-more-directives branch September 5, 2026 08:33
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