Basic Links and Images Test

Marky Markdown Testerson

7. November 2025November 7, 2025 · 4 Min. Lesezeit4 min read

Basic Links and Images Test

This file tests link and image syntax in markdown, including inline links, reference links, and images.

Inline links are created using square brackets for the link text followed by parentheses containing the URL.

This is an inline link.

You can have multiple links in the same paragraph.

Links can include an optional title that appears as a tooltip when hovering.

This is a link with title.

This is another link with title.

This link uses (parentheses) for the title: [link](https://example.com (Title in Parentheses)).

Reference links use a two-part syntax: the link text in square brackets, and the URL definition elsewhere.

This is a reference link.

This is another reference link.

Reference links can also include titles.

This is a reference link with title.

This is another reference link with title.

You can use the link text itself as the reference identifier.

This is an implicit reference link.

This paragraph contains a link in the middle of the text.

  1. Ordered item with link
  2. Another ordered item with link

This blockquote contains a link.

Links can contain formatting like bold and italic.

This is a bold link.

This is a italic link.

This is a bold italic link.

Images#

Images are created using an exclamation mark followed by square brackets for alt text and parentheses for the image URL.

Alt text
Image with description

Images with Titles#

Images can include optional titles.

Alt text
Another image

Reference Style Images#

Images can use reference-style syntax.

Reference image
Another reference image

Linking Images#

To create a link that wraps an image, enclose the image syntax in square brackets followed by the link URL in parentheses.

Images in Different Contexts#

Images in Paragraphs#

This paragraph contains an image: Inline image

Images in Lists#

Images in Blockquotes#

This blockquote contains an image: Blockquote image

Relative and Absolute URLs#

Links can use both relative and absolute URLs.

This is a relative link.

This is an absolute link.

This is a protocol-relative link.

Links can contain special characters, but URLs with spaces should be encoded.

This is a link with encoded space.

This is a link with parentheses.

Edge Cases#

Image with Empty Alt Text#

Image with Only Spaces in Alt Text#

Link text

This is a [broken reference link][broken].

Very Long URLs#

This is a link with a very long URL.

Images with Special Characters in Alt Text#

Image with !@#$%
Image with "quotes"

Best Practices#

URL Encoding#

For compatibility, encode spaces in URLs with %20.

✅ Correct link

❌ [Incorrect link](https://example.com/my page.html)

Parentheses in URLs#

Encode opening parenthesis as %28 and closing parenthesis as %29.

✅ Correct link

❌ Incorrect linkparentheses.html)


Source: basic-links-and-images.md

Written by

Comments

No comments yet. Start the conversation.

Contents

16 sections

  1. Inline Links
  2. Links with Titles
  3. Reference Links
  4. Reference Links with Titles
  5. Implicit Reference Links
  6. Links in Different Contexts
  7. Links with Formatting
  8. Images
  9. Images with Titles
  10. Reference Style Images
  11. Linking Images
  12. Images in Different Contexts
  13. Relative and Absolute URLs
  14. Links with Special Characters
  15. Edge Cases
  16. Best Practices