legacyToMarkdownReference('see [attach=12] please'); $this->assertStringContainsString('(attach:12)', $md); $this->assertStringNotContainsString('[attach=12]', $md); } public function test_markdown_render_expands_attach_protocol_to_entry_url(): void { $html = app(ContentRenderer::class)->toHtml( "\n", ContentFormat::MARKDOWN, ); $this->assertStringContainsString('/attachment.php?id=42', $html); $this->assertStringNotContainsString('attach:42', $html); } public function test_html_render_hydrates_legacy_attach_token(): void { $html = app(ContentRenderer::class)->toHtml( '
file [attach=7]
', ContentFormat::HTML, ); $this->assertStringContainsString('/attachment.php?id=7', $html); $this->assertStringNotContainsString('[attach=7]', $html); } public function test_html_img_src_attach_attribute_is_not_nested(): void { $html = app(ContentRenderer::class)->toHtml( ' and [attach=2]