Skip to content

Port problem file markdown to league/commonmark 2 - #309

Merged
AydinHassan merged 13 commits into
stack/1f-cifrom
stack/2-commonmark2
Oct 22, 2026
Merged

AydinHassan merged 13 commits into
stack/1f-cifrom
stack/2-commonmark2

Conversation

@AydinHassan

@AydinHassan AydinHassan commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Part of a stack replacing #300. Review in order; each PR is based on the previous one.

Via php-school/cli-md-renderer 2.0 and keylighter 0.8.5; restores bold/italic in problem files. Also requires cli-menu ^4.5 (terminal 0.3). Clears all composer audit advisories.

馃 Generated with Claude Code

@AydinHassan
AydinHassan added this pull request to stack #311 October 22, 2026 16:09
@AydinHassan
AydinHassan removed this pull request from stack #311 October 22, 2026 16:20
@AydinHassan
AydinHassan added this pull request to stack #313 October 22, 2026 16:21
@AydinHassan
AydinHassan removed this pull request from stack #313 October 22, 2026 16:26
@AydinHassan
AydinHassan added this pull request to stack #314 October 22, 2026 16:27
@AydinHassan
AydinHassan force-pushed the stack/2-commonmark2 branch 2 times, most recently from 8af0235 to d2e5005 Compare October 22, 2026 18:45
@AydinHassan
AydinHassan removed this pull request from stack #314 October 22, 2026 18:52
@AydinHassan
AydinHassan added this pull request to stack #315 October 22, 2026 18:53
@AydinHassan
AydinHassan removed this pull request from stack #315 October 22, 2026 18:53
@AydinHassan
AydinHassan added this pull request to stack #317 October 22, 2026 18:53
AydinHassan and others added 13 commits October 22, 2026 21:01
Stop leaking the environment to student code
CI: PHP 8.2-8.5, job timeout, stop on first error
Newer symfony/process does not accept a null command, which ExecutableFinder::find() returns when composer is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fail clearly when composer cannot be found in WorkshopExerciseTest
Use php-school/cli-md-renderer 2 and keylighter 0.8.5. Port the context
specific block, handlebar shorthands and renderer to the commonmark 2
parser and renderer APIs. Restore bold and italics, lost when problem
files moved to a bare environment in 0c3e088.

Tests still to be migrated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test the v2 block start/continue parsers, inline parser and renderer,
using a real environment built like app/config.php. Add rendering tests
for bold and emphasis. Remove the unused BlockStub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The continue parser skipped the leading whitespace of every line in the block, so indented code lost its indentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AydinHassan
AydinHassan merged commit c43a002 into master Oct 22, 2026
4 checks passed
An error occurred while trying to automatically change base from stack/1f-ci to master October 22, 2026 19:28
@AydinHassan
AydinHassan deleted the stack/2-commonmark2 branch October 22, 2026 21:12
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