GUIDE 5 — LINKS AND MEDIA

home | guide index


plain urls

marktxt

https://example.com

;} https://example.com ;.

markdown

<https://example.com>

html

<a href="https://example.com">https://example.com</a>

linked text

marktxt

visit example

;] visit example ;. ;} https://example.com ;.

the text comes first, then the url. both closed with ;.

markdown

[visit example](https://example.com)

html

<a href="https://example.com">visit example</a>

images

marktxt

;{ alt text ;. ;} /img/photo.jpg ;.

alt text first, then the url. same pattern as linked text but with ;{ instead of ;]

markdown

![alt text](/img/photo.jpg)

html

<img src="/img/photo.jpg" alt="alt text">

links inside text

all link types work inline within plain text and lists:

check out the marktxt repo for more.

check out ;] the marktxt repo ;. ;} https://github.com/digiopsys/marktxt ;. for more.

;- ;] guide index ;. ;} /guide ;. — all guides ;.
;- ;] home page ;. ;} / ;. — back to start ;.

why it matters

markdown uses [text](url) — brackets and parentheses that clash with
code syntax, math notation, and shell subshells.

marktxt uses ;] text url ;. — the same semicolon pattern as everything else.
one trigger character for all operators. consistent and unambiguous.


prev: lists | next: structure