release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 5)
0b7eb60 verified Download heldout_pool/frostming__marko-88e65f1f51c1/solution/patch.diff from Benjamin-eecs/openrsi-commit-runtime-assets: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout_pool/frostming__marko-88e65f1f51c1/solution/patch.diff
- Command line
-
hf download hf://datasets/Benjamin-eecs/openrsi-commit-runtime-assets/heldout_pool/frostming__marko-88e65f1f51c1/solution/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout_pool/frostming__marko-88e65f1f51c1/solution/patch.diff
1.38 kB
| diff --git a/CHANGELOG.md b/CHANGELOG.md | |
| index 0346323..9aa152c 100644 | |
| --- a/CHANGELOG.md | |
| +++ b/CHANGELOG.md | |
| +## v2.2.2(2026-01-05) | |
| + | |
| +### Fixed | |
| + | |
| +- Fix a bug in GFM alert block parsing where alert types were case-sensitive. | |
| +- Fix GFM alert regex to disallow content on header line. | |
| + | |
| ## v2.2.1(2025-10-13) | |
| ### Changed | |
| diff --git a/marko/__init__.py b/marko/__init__.py | |
| index 4aae580..a21e6dd 100644 | |
| --- a/marko/__init__.py | |
| +++ b/marko/__init__.py | |
| if TYPE_CHECKING: | |
| from .block import Document | |
| from .parser import ElementType | |
| -__version__ = "2.2.1" | |
| +__version__ = "2.2.2" | |
| class SetupDone(Exception): | |
| diff --git a/marko/ext/gfm/elements.py b/marko/ext/gfm/elements.py | |
| index fa98289..2edcaeb 100644 | |
| --- a/marko/ext/gfm/elements.py | |
| +++ b/marko/ext/gfm/elements.py | |
| class Alert(block.Quote): | |
| @classmethod | |
| def match(cls, source): | |
| - return source.expect_re(r" {,3}>\s*\[\!(WARNING|NOTE|TIP|IMPORTANT|CAUTION)\]") | |
| + return source.expect_re( | |
| + r"(?im) {,3}>\s*\[\!(WARNING|NOTE|TIP|IMPORTANT|CAUTION)\]\s*$" | |
| + ) | |
| @classmethod | |
| def parse(cls, source): | |
| - alert_type = source.match.group(1) | |
| + alert_type = source.match.group(1).upper() | |
| source.next_line(require_prefix=False) | |
| source.consume() | |
| state = cls(alert_type) | |