# Evidence: Block 13 · Service (block-13)

- block type: block
- date: 2026-10-27
- resulting state: closed/verified
- story points (combined assembled cost): 3737
- execution id: 20261028.022711.708Z-054d2a6b

## Stories built
- Exercise all scoped CommonMark examples against the integrated parser. (conformance-integration) [story]

## Acceptance tooling authorization
- FEATURE-ConformanceIntegration.md#conformance-preliminaries: executable=python3; scope=test; authorization=existing Target environment
- FEATURE-ConformanceIntegration.md#conformance-blocks: executable=python3; scope=test; authorization=existing Target environment
- FEATURE-ConformanceIntegration.md#conformance-containers: executable=python3; scope=test; authorization=existing Target environment
- FEATURE-ConformanceIntegration.md#conformance-inlines: executable=python3; scope=test; authorization=existing Target environment

## Stacked context
- stack: python_compact.md (SP 654)
- compass: COMPASS.md (SP 548)
- implements: FEATURE-ConformanceIntegration.md (SP 1037)
- context: ARCHITECTURE_compact.md (SP 304)
- stack: common_compact.md (SP 1079)

## Build directory changes
- commonmark_parser/__init__.py
- commonmark_parser/html_blocks.py
- commonmark_parser/images.py
- commonmark_parser/inline_html_breaks.py
- commonmark_parser/inlines.py
- commonmark_parser/links.py
- commonmark_parser/references.py
- tests/test_inline_text.py
- tests/test_render_integration.py

## Pre-build acceptance observation
- GREEN (prepassed): conformance-preliminaries (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every supplied Tabs and Precedence example.
  return code: 0
  stdout:
    12 passed, 0 failed, 0 errored, 643 skipped
- RED: conformance-blocks (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every example in the supplied leaf block sections.
  return code: 1
  stdout:
    Example 196 (lines 3221-3227) Link reference definitions
    [Foo*bar\]]:my_(url) 'title (with parens)'
    
    [Foo*bar\]]
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="my_(url)" title="title (with parens)">Foo*bar]</a></p>
    +<p>[Foo*bar]]:my_(url) 'title (with parens)'</p><p>[Foo*bar]]</p>
    
    Example 198 (lines 3243-3257) Link reference definitions
    [foo]: /url '
    title
    line1
    line2
    '
    
    [foo]
    
    --- expected HTML
    +++ actual HTML
    @@ -1,5 +1 @@
    -<p><a href="/url" title="
    -title
    -line1
    -line2
    -">foo</a></p>
    +<p>title line1 line2 '</p><p><a href="/url" title="">foo</a></p>
    
    Example 210 (lines 3393-3400) Link reference definitions
    [
    foo
    ]: /url
    bar
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>bar</p>
    +<p>[ foo ]: /url bar</p>
    
    184 passed, 3 failed, 0 errored, 468 skipped
  stderr:
    --- drydock: progress ---
    cases: pass=184 fail=3 error=0 skip=468 total=655 from=result.stdout
    --- drydock: end progress ---
    --- drydock: values at failure ---
      result = CompletedProcess(args=['/mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/.venv/bin/python', 'sources/spec_tests.py', '--program', '/mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/commonmark', '--spec', 'sources/spec.txt', '--pattern', '^(Thematic breaks|ATX headings|Setext headings|Indented code blocks|Fenced code blo… (+937 chars)
    --- drydock: end values ---
    Traceback (most recent call last):
      File "conformance-blocks.py", line 12, in <module>
        assert result.returncode == 0
               ^^^^^^^^^^^^^^^^^^^^^^
    AssertionError
- GREEN (prepassed): conformance-containers (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every supplied block quote, list item, and list example.
  return code: 0
  stdout:
    99 passed, 0 failed, 0 errored, 556 skipped
- RED: conformance-inlines (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every example in the supplied inline and text sections.
  return code: 1
  stdout:
    Example 371 (lines 6521-6525) Emphasis and strong emphasis
    *(*foo*)*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>(<em>foo</em>)</em></p>
    +<p><em>(*foo</em>)*</p>
    
    Example 375 (lines 6562-6566) Emphasis and strong emphasis
    _(_foo_)_
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>(<em>foo</em>)</em></p>
    +<p><em>(_foo</em>)_</p>
    
    Example 391 (lines 6704-6708) Emphasis and strong emphasis
    __foo, __bar__, baz__
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo, <strong>bar</strong>, baz</strong></p>
    +<p><strong>foo, __bar</strong>, baz__</p>
    
    Example 395 (lines 6751-6755) Emphasis and strong emphasis
    *(**foo**)*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>(<strong>foo</strong>)</em></p>
    +<p><em>(**foo</em>)*</p>
    
    Example 396 (lines 6758-6764) Emphasis and strong emphasis
    **Gomphocarpus (*Gomphocarpus physocarpus*, syn.
    *Asclepias physocarpa*)**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>Gomphocarpus (<em>Gomphocarpus physocarpus</em>, syn. <em>Asclepias physocarpa</em>)</strong></p>
    +<p>*<em>Gomphocarpus (*Gomphocarpus physocarpus</em>, syn. <em>Asclepias physocarpa</em>)**</p>
    
    Example 397 (lines 6767-6771) Emphasis and strong emphasis
    **foo "*bar*" foo**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo &quot;<em>bar</em>&quot; foo</strong></p>
    +<p>*<em>foo &quot;*bar</em>&quot; foo**</p>
    
    Example 401 (lines 6808-6812) Emphasis and strong emphasis
    _(__foo__)_
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>(<strong>foo</strong>)</em></p>
    +<p><em>(__foo</em>)_</p>
    
    Example 406 (lines 6854-6858) Emphasis and strong emphasis
    *foo [bar](/url)*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <a href="/url">bar</a></em></p>
    +<p>*foo <a href="/url">bar</a>*</p>
    
    Example 408 (lines 6873-6877) Emphasis and strong emphasis
    _foo __bar__ baz_
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <strong>bar</strong> baz</em></p>
    +<p><em>foo __bar</em> baz_</p>
    
    Example 409 (lines 6880-6884) Emphasis and strong emphasis
    _foo _bar_ baz_
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <em>bar</em> baz</em></p>
    +<p><em>foo _bar</em> baz_</p>
    
    Example 410 (lines 6887-6891) Emphasis and strong emphasis
    __foo_ bar_
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em><em>foo</em> bar</em></p>
    +<p>_<em>foo</em> bar_</p>
    
    Example 411 (lines 6894-6898) Emphasis and strong emphasis
    *foo *bar**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <em>bar</em></em></p>
    +<p><em>foo *bar</em></p>
    
    Example 412 (lines 6901-6905) Emphasis and strong emphasis
    *foo **bar** baz*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <strong>bar</strong> baz</em></p>
    +<p><em>foo **bar</em> baz*</p>
    
    Example 413 (lines 6907-6911) Emphasis and strong emphasis
    *foo**bar**baz*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo<strong>bar</strong>baz</em></p>
    +<p><em>foo</em>bar*<em>baz</em></p>
    
    Example 414 (lines 6931-6935) Emphasis and strong emphasis
    *foo**bar*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo**bar</em></p>
    +<p><em>foo</em>bar*</p>
    
    Example 415 (lines 6944-6948) Emphasis and strong emphasis
    ***foo** bar*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em><strong>foo</strong> bar</em></p>
    +<p>*<strong>foo</strong> bar*</p>
    
    Example 416 (lines 6951-6955) Emphasis and strong emphasis
    *foo **bar***
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <strong>bar</strong></em></p>
    +<p><em>foo **bar</em></p>
    
    Example 417 (lines 6958-6962) Emphasis and strong emphasis
    *foo**bar***
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo<strong>bar</strong></em></p>
    +<p><em>foo</em>bar***</p>
    
    Example 418 (lines 6969-6973) Emphasis and strong emphasis
    foo***bar***baz
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>foo<em><strong>bar</strong></em>baz</p>
    +<p>foo*<strong>bar</strong>baz</p>
    
    Example 419 (lines 6975-6979) Emphasis and strong emphasis
    foo******bar*********baz
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>foo<strong><strong><strong>bar</strong></strong></strong>***baz</p>
    +<p>foo****<strong>bar</strong>baz</p>
    
    Example 420 (lines 6984-6988) Emphasis and strong emphasis
    *foo **bar *baz* bim** bop*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <strong>bar <em>baz</em> bim</strong> bop</em></p>
    +<p><em>foo **bar *baz</em> bim** bop*</p>
    
    Example 421 (lines 6991-6995) Emphasis and strong emphasis
    *foo [*bar*](/url)*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo <a href="/url"><em>bar</em></a></em></p>
    +<p>*foo <a href="/url"><em>bar</em></a>*</p>
    
    Example 424 (lines 7020-7024) Emphasis and strong emphasis
    **foo [bar](/url)**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <a href="/url">bar</a></strong></p>
    +<p>**foo <a href="/url">bar</a>**</p>
    
    Example 426 (lines 7039-7043) Emphasis and strong emphasis
    __foo _bar_ baz__
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <em>bar</em> baz</strong></p>
    +<p>_<em>foo _bar</em> baz__</p>
    
    Example 427 (lines 7046-7050) Emphasis and strong emphasis
    __foo __bar__ baz__
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <strong>bar</strong> baz</strong></p>
    +<p><strong>foo __bar</strong> baz__</p>
    
    Example 428 (lines 7053-7057) Emphasis and strong emphasis
    ____foo__ bar__
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong><strong>foo</strong> bar</strong></p>
    +<p>__<strong>foo</strong> bar__</p>
    
    Example 429 (lines 7060-7064) Emphasis and strong emphasis
    **foo **bar****
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <strong>bar</strong></strong></p>
    +<p><strong>foo **bar</strong></p>
    
    Example 430 (lines 7067-7071) Emphasis and strong emphasis
    **foo *bar* baz**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <em>bar</em> baz</strong></p>
    +<p>*<em>foo *bar</em> baz**</p>
    
    Example 431 (lines 7074-7078) Emphasis and strong emphasis
    **foo*bar*baz**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo<em>bar</em>baz</strong></p>
    +<p>*<em>foo</em>bar<em>baz</em></p>
    
    Example 432 (lines 7081-7085) Emphasis and strong emphasis
    ***foo* bar**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong><em>foo</em> bar</strong></p>
    +<p>**<em>foo</em> bar**</p>
    
    Example 433 (lines 7088-7092) Emphasis and strong emphasis
    **foo *bar***
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <em>bar</em></strong></p>
    +<p><strong>foo *bar</strong></p>
    
    Example 434 (lines 7097-7103) Emphasis and strong emphasis
    **foo *bar **baz**
    bim* bop**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <em>bar <strong>baz</strong> bim</em> bop</strong></p>
    +<p><strong>foo *bar **baz</strong> bim* bop**</p>
    
    Example 435 (lines 7106-7110) Emphasis and strong emphasis
    **foo [*bar*](/url)**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo <a href="/url"><em>bar</em></a></strong></p>
    +<p>**foo <a href="/url"><em>bar</em></a>**</p>
    
    Example 439 (lines 7139-7143) Emphasis and strong emphasis
    foo *\**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>foo <em>*</em></p>
    +<p>foo ***</p>
    
    Example 442 (lines 7160-7164) Emphasis and strong emphasis
    foo **\***
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>foo <strong>*</strong></p>
    +<p>foo *****</p>
    
    Example 445 (lines 7185-7189) Emphasis and strong emphasis
    *foo**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo</em>*</p>
    +<p><em>foo</em></p>
    
    Example 448 (lines 7206-7210) Emphasis and strong emphasis
    **foo***
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo</strong>*</p>
    +<p><strong>foo</strong></p>
    
    Example 449 (lines 7213-7217) Emphasis and strong emphasis
    *foo****
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo</em>***</p>
    +<p><em>foo</em></p>
    
    Example 451 (lines 7230-7234) Emphasis and strong emphasis
    foo _\__
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>foo <em>_</em></p>
    +<p>foo ___</p>
    
    Example 454 (lines 7251-7255) Emphasis and strong emphasis
    foo __\___
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>foo <strong>_</strong></p>
    +<p>foo _____</p>
    
    Example 457 (lines 7276-7280) Emphasis and strong emphasis
    _foo__
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo</em>_</p>
    +<p><em>foo</em></p>
    
    Example 460 (lines 7297-7301) Emphasis and strong emphasis
    __foo___
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong>foo</strong>_</p>
    +<p><strong>foo</strong></p>
    
    Example 461 (lines 7304-7308) Emphasis and strong emphasis
    _foo____
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo</em>___</p>
    +<p><em>foo</em></p>
    
    Example 466 (lines 7345-7349) Emphasis and strong emphasis
    ****foo****
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong><strong>foo</strong></strong></p>
    +<p>**<strong>foo</strong></p>
    
    Example 467 (lines 7352-7356) Emphasis and strong emphasis
    ____foo____
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong><strong>foo</strong></strong></p>
    +<p>__<strong>foo</strong></p>
    
    Example 468 (lines 7363-7367) Emphasis and strong emphasis
    ******foo******
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><strong><strong><strong>foo</strong></strong></strong></p>
    +<p>****<strong>foo</strong></p>
    
    Example 469 (lines 7372-7376) Emphasis and strong emphasis
    ***foo***
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em><strong>foo</strong></em></p>
    +<p>*<strong>foo</strong></p>
    
    Example 470 (lines 7379-7383) Emphasis and strong emphasis
    _____foo_____
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em><strong><strong>foo</strong></strong></em></p>
    +<p>___<strong>foo</strong></p>
    
    Example 473 (lines 7404-7408) Emphasis and strong emphasis
    **foo **bar baz**
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>**foo <strong>bar baz</strong></p>
    +<p><strong>foo **bar baz</strong></p>
    
    Example 474 (lines 7411-7415) Emphasis and strong emphasis
    *foo *bar baz*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>*foo <em>bar baz</em></p>
    +<p><em>foo *bar baz</em></p>
    
    Example 480 (lines 7455-7459) Emphasis and strong emphasis
    *a `*`*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>a <code>*</code></em></p>
    +<p>*a <code>*</code>*</p>
    
    Example 481 (lines 7462-7466) Emphasis and strong emphasis
    _a `_`_
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>a <code>_</code></em></p>
    +<p>_a <code>_</code>_</p>
    
    Example 491 (lines 7616-7620) Links
    [link](</my uri>)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/my%20uri">link</a></p>
    +<p>[link](</my>)</p>
    
    Example 518 (lines 7895-7899) Links
    [link *foo **bar** `#`*](/uri)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
    +<p><a href="/uri">link <em>foo **bar</em> <code>#</code>*</a></p>
    
    Example 519 (lines 7902-7906) Links
    [![moon](moon.jpg)](/uri)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/uri"><img alt="moon" src="moon.jpg"></a></p>
    +<p><a href="/uri">![moon](moon.jpg)</a></p>
    
    Example 520 (lines 7911-7915) Links
    [foo [bar](/uri)](/uri)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>[foo <a href="/uri">bar</a>](/uri)</p>
    +<p><a href="/uri">foo [bar](/uri)</a></p>
    
    Example 521 (lines 7918-7922) Links
    [foo *[bar [baz](/uri)](/uri)*](/uri)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>[foo <em>[bar <a href="/uri">baz</a>](/uri)</em>](/uri)</p>
    +<p><a href="/uri">foo <em>[bar [baz](/uri)](/uri)</em></a></p>
    
    Example 522 (lines 7925-7929) Links
    ![[[foo](uri1)](uri2)](uri3)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><img alt="[foo](uri2)" src="uri3"></p>
    +<p>![<a href="uri2">[foo](uri1)</a>](uri3)</p>
    
    Example 528 (lines 7976-7980) Links
    [foo<https://example.com/?search=](uri)>
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>[foo<a href="https://example.com/?search=%5D(uri)">https://example.com/?search=](uri)</a></p>
    +<p><a href="uri">foo&lt;https://example.com/?search=</a>&gt;</p>
    
    Example 532 (lines 8049-8055) Links
    [link *foo **bar** `#`*][ref]
    
    [ref]: /uri
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
    +<p><a href="/uri">link <em>foo **bar</em> <code>#</code>*</a></p>
    
    Example 533 (lines 8058-8064) Links
    [![moon](moon.jpg)][ref]
    
    [ref]: /uri
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/uri"><img alt="moon" src="moon.jpg"></a></p>
    +<p><a href="/uri">![moon](moon.jpg)</a></p>
    
    Example 534 (lines 8069-8075) Links
    [foo [bar](/uri)][ref]
    
    [ref]: /uri
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>[foo <a href="/uri">bar</a>]<a href="/uri">ref</a></p>
    +<p><a href="/uri">foo [bar](/uri)</a></p>
    
    Example 535 (lines 8078-8084) Links
    [foo *bar [baz][ref]*][ref]
    
    [ref]: /uri
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>[foo <em>bar <a href="/uri">baz</a></em>]<a href="/uri">ref</a></p>
    +<p><a href="/uri">foo <em>bar [baz][ref]</em></a></p>
    
    Example 540 (lines 8132-8138) Links
    [foo<https://example.com/?search=][ref]>
    
    [ref]: /uri
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>[foo<a href="https://example.com/?search=%5D%5Bref%5D">https://example.com/?search=][ref]</a></p>
    +<p><a href="/uri">foo&lt;https://example.com/?search=</a>&gt;</p>
    
    Example 543 (lines 8166-8173) Links
    [Foo
      bar]: /url
    
    [Baz][Foo bar]
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/url">Baz</a></p>
    +<p>[Foo bar]: /url</p><p>[Baz][Foo bar]</p>
    
    Example 547 (lines 8244-8250) Links
    [bar][foo\!]
    
    [foo!]: /url
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>[bar][foo!]</p>
    +<p><a href="/url">bar</a></p>
    
    Example 551 (lines 8286-8292) Links
    [foo][ref\[]
    
    [ref\[]: /uri
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/uri">foo</a></p>
    +<p>[foo][ref[]</p><p>[ref[]: /uri</p>
    
    Example 552 (lines 8297-8303) Links
    [bar\\]: /uri
    
    [bar\\]
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a href="/uri">bar\</a></p>
    +<p>[bar\]</p>
    
    Example 577 (lines 8589-8593) Images
    ![foo [bar](/url)](/url2)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><img alt="foo bar" src="/url2"></p>
    +<p>![foo <a href="/url">bar</a>](/url2)</p>
    
    Example 579 (lines 8612-8618) Images
    ![foo *bar*][foobar]
    
    [FOOBAR]: train.jpg "train & tracks"
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><img alt="foo bar" src="train.jpg" title="train &amp; tracks"></p>
    +<p>![foo <em>bar</em>]<a href="train.jpg" title="train &amp; tracks">foobar</a></p>
    
    Example 582 (lines 8635-8639) Images
    ![foo](<url>)
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><img alt="foo" src="url"></p>
    +<p>![foo](<url>)</p>
    
    Example 584 (lines 8651-8657) Images
    ![foo][bar]
    
    [bar]: /url
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><img alt="foo" src="/url"></p>
    +<p>![foo]<a href="/url">bar</a></p>
    
    Example 585 (lines 8660-8666) Images
    ![foo][bar]
    
    [BAR]: /url
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><img alt="foo" src="/url"></p>
    +<p>![foo]<a href="/url">bar</a></p>
    
    Example 595 (lines 8772-8778) Images
    \![foo]
    
    [foo]: /url "title"
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>!<a href="/url" title="title">foo</a></p>
    +<p>\<img alt="foo" src="/url" title="title"></p>
    
    Example 618 (lines 9070-9076) Raw HTML
    <a foo="bar" bam = 'baz <em>"</em>'
    _boolean zoop:33=zoop:33 />
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><a 'baz <em bam="" foo="bar">"</em>' _boolean zoop:33=zoop:33 /></p>
    +<p>&lt;a foo=&quot;bar&quot; bam = 'baz <em>&quot;</em>' _boolean zoop:33=zoop:33 /&gt;</p>
    
    Example 621 (lines 9099-9103) Raw HTML
    <a h*#ref="hi">
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>&lt;a h*#ref=&quot;hi&quot;&gt;</p>
    +<a h*#ref="hi"> 
    
    Example 623 (lines 9117-9127) Raw HTML
    < a><
    foo><bar/ >
    <foo bar=baz
    bim!bop />
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>&lt; a&gt;&lt; foo&gt;&lt;bar/ &gt; &lt;foo bar=baz bim!bop /&gt;</p>
    +<p>&lt; a&gt;&lt; foo&gt;&lt;bar/ &gt; <foo bar="baz" bim!bop></p>
    
    Example 624 (lines 9132-9136) Raw HTML
    <a href='bar'title=title>
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>&lt;a href='bar'title=title&gt;</p>
    +<a href="bar" title="title"> 
    
    Example 626 (lines 9150-9154) Raw HTML
    </a href="foo">
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>&lt;/a href=&quot;foo&quot;&gt;</p>
    +</a> 
    
    Example 631 (lines 9197-9201) Raw HTML
    foo <![CDATA[>&<]]>
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>foo <![CDATA[>&<]]></p>
    +<p>foo <![CDATA[>&amp;&lt;]]&gt;</p>
    
    Example 634 (lines 9223-9227) Raw HTML
    <a href="\"">
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p>&lt;a href=&quot;&quot;&quot;&gt;</p>
    +<a " href="\"> 
    
    Example 641 (lines 9306-9312) Hard line breaks
    *foo  
    bar*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo<br>bar</em></p>
    +<p>*foo<br>bar*</p>
    
    Example 642 (lines 9315-9321) Hard line breaks
    *foo\
    bar*
    
    --- expected HTML
    +++ actual HTML
    @@ -1 +1 @@
    -<p><em>foo<br>bar</em></p>
    +<p>*foo<br>bar*</p>
    
    273 passed, 83 failed, 0 errored, 299 skipped
  stderr:
    --- drydock: progress ---
    cases: pass=273 fail=83 error=0 skip=299 total=655 from=result.stdout
    --- drydock: end progress ---
    --- drydock: values at failure ---
      result = CompletedProcess(args=['/mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/.venv/bin/python', 'sources/spec_tests.py', '--program', '/mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/commonmark', '--spec', 'sources/spec.txt', '--pattern', '^(Backslash escapes|Entity and numeric character references|Code spans|Emphasis and… (+17815 chars)
    --- drydock: end values ---
    Traceback (most recent call last):
      File "conformance-inlines.py", line 12, in <module>
        assert result.returncode == 0
               ^^^^^^^^^^^^^^^^^^^^^^
    AssertionError

## Post-build programmatic acceptance
- PASS: conformance-preliminaries (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every supplied Tabs and Precedence example.
  target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/.venv/bin/python
  provisioning: not required
  return code: 0
  stdout:
    12 passed, 0 failed, 0 errored, 643 skipped
- PASS: conformance-blocks (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every example in the supplied leaf block sections.
  target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/.venv/bin/python
  provisioning: not required
  return code: 0
  stdout:
    187 passed, 0 failed, 0 errored, 468 skipped
- PASS: conformance-containers (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every supplied block quote, list item, and list example.
  target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/.venv/bin/python
  provisioning: not required
  return code: 0
  stdout:
    99 passed, 0 failed, 0 errored, 556 skipped
- PASS: conformance-inlines (FEATURE-ConformanceIntegration.md)
  intent: The integrated parser passes every example in the supplied inline and text sections.
  target interpreter: /mnt/c/Users/barlo/projects/drydock/uat/CommonMark/runs/20261027.211306/build/commonmark/.venv/bin/python
  provisioning: not required
  return code: 0
  stdout:
    356 passed, 0 failed, 0 errored, 299 skipped

## Repair attempts
- attempt 0 (initial build): failed; 3/4 checks; 616/654 cases model=gpt-6.1-terra; execution 20261028.021500.992Z-f67c91b1; reason: programmatic acceptance failed: conformance-inlines
- attempt 1 (repair 1): failed; 4/4 checks; 654/654 cases model=gpt-6.1-terra; execution 20261028.022034.143Z-4de320c1; reason: acceptance regression: inline-escape
- attempt 2 (repair 2): built; 4/4 checks; 654/654 cases model=gpt-6.1-terra; execution 20261028.022711.708Z-054d2a6b

## Build summary
RESULT: SUCCESS

FILES CHANGED:
- commonmark_parser/inlines.py
- tests/test_inline_text.py

SUMMARY:
Restored escaped punctuation as public `text` nodes while preserving delimiter handling.

- Escape reproduction failed before the fix; `pytest -q tests/test_inline_text.py tests/test_render_integration.py` passed afterward: 34 tests.
- `pytest -q` passed: 109 tests.
- The scoped inline conformance selector passed: 356 examples.
- The scoped JSON selection probe completed successfully.
- The preliminaries, blocks, and containers conformance selectors were not rerun in this repair pass.

BLOCKERS:
- None.
