Malformed Block Error Handling Tests
This page tests how the markdown processor handles malformed gallery and link-preview blocks.
Malformed Gallery Blocks
Missing closing marker
:::gallery
images=[{"src": "/image1.jpg", "alt": "Test"}]
Invalid JSON syntax
:::gallery
images=[{"src": "/image1.jpg", "alt": "Test",}]
:::
Missing images array
:::gallery
caption="Test gallery"
:::
Empty images array
:::gallery
images=[]
:::
Malformed Link-Preview Blocks
Missing closing marker
:::link-preview
url="https://example.com"
title="Example Domain"
description=""
thumbnail="null"
:::link-preview
title="Test"
:::
Invalid URL format
:::link-preview
url="not-a-valid-url"
:::
Empty URL
:::link-preview
url=""
:::
Valid Blocks (for comparison)
Valid Gallery
:::gallery
images=[{"src": "/image1.jpg", "alt": "Test"}]
:::
Valid Link-Preview
:::link-preview
url="https://example.com"
title="Example Domain"
description=""
thumbnail="null"
:::