# Test · Callouts --- ## All Types · Open > [!note] > **Note** — General information. Η Ιθάκη σε περιμένει. _The island waits._ > [!tip] > **Tip** — A helpful suggestion. Keep open water on your port side when rounding capes. > [!info] > **Info** — Contextual detail. Το Ιόνιο βάθος φτάνει τα 5,267 μέτρα στο Calypso Deep. > [!success] > **Success** — Task complete. Φτάσαμε στο λιμάνι. _We reached the harbour._ > [!warning] > **Warning** — Proceed with caution. Η τρικυμία πλησιάζει. _The storm is coming._ > [!danger] > **Danger** — High risk. Something lurks in the open water. Do not continue without escort. > [!failure] > **Failure** — Something went wrong. The mainsail tore in the squall. No progress today. > [!bug] > **Bug** — Technical issue. The autopilot has miscalculated the current. Heading 12° off true north. > [!question] > **Question** — Open inquiry. Πού κρύβεται το αυγό του σκοτεινού δράκου; Where is the egg hidden? > [!abstract] > **Abstract** / Summary. Seven years at sea, one goal: Ithaka. The fleet is reduced to one vessel. > [!example] > **Example** — Illustration. Τριγωνομετρία: sin(30°) = 0.5. Given a 10 km base, opposite leg = 5 km. > [!quote] > _"Wine is sunlight, held together by water."_ > > -- Galileo Galilei --- ## All Types · Collapsed > [!note]- > Collapsed note. Click to expand. > [!tip]- > Collapsed tip. Contains a helpful suggestion inside. > [!info]- > Collapsed info block. > [!success]- > Collapsed success. Operation completed without errors. > [!warning]- > Collapsed warning. Important caution — expand to read. > [!danger]- > Collapsed danger. High-severity alert. Expand immediately. > [!failure]- > Collapsed failure notice. > [!bug]- > Collapsed bug report. Expand for stack trace and reproduction steps. > [!question]- > Collapsed open question. Expand to see the full inquiry. > [!abstract]- > Collapsed abstract / TL;DR. > [!example]- > Collapsed example. Click to reveal the worked example. > [!quote]- > Collapsed quotation. --- ## Rich Content Inside Callouts > [!info] Callout with a Custom Title > This callout has a **custom title** replacing the default type label. > > It also has multiple paragraphs of content, _italic text_, and `inline code`. > [!note] Callout with a List > The five Ionian islands: > > 1. Κέρκυρα (Corfu) — largest, most visited > 2. Λευκάδα (Lefkada) — connected to mainland by causeway > 3. Κεφαλονιά (Kefalonia) — highest peak (Ainos 1,628 m) > 4. Ιθάκη (Ithaka) — Odysseus's home > 5. Ζάκυνθος (Zakynthos) — Loggerhead sea turtle nesting site > [!example] Callout with a Code Block > Haversine distance formula in Python: > > ```python > import math > > def haversine(lat1, lon1, lat2, lon2) -> float: > R = 3_440.065 # Earth radius in nautical miles > φ1, φ2 = math.radians(lat1), math.radians(lat2) > dφ = math.radians(lat2 - lat1) > dλ = math.radians(lon2 - lon1) > a = math.sin(dφ/2)**2 + math.cos(φ1)*math.cos(φ2)*math.sin(dλ/2)**2 > return 2 * math.asin(math.sqrt(a)) * R > ``` > [!tip] Callout with a Table > | Island | Area km² | Pop | > | :--- | ---: | ---: | > | Κέρκυρα | 610 | 102,071 | > | Κεφαλονιά | 781 | 35,801 | > | Ζάκυνθος | 406 | 40,759 | --- ## Collapsed with Rich Content > [!example]- Collapsed Callout with Code Block > Full Python module inside a collapsed callout. Expand to verify syntax highlighting and no content bleed. > > ```python > import math > from dataclasses import dataclass > from typing import Iterator > > @dataclass > class Waypoint: > name: str > lat: float > lon: float > > def __repr__(self) -> str: > return f"Waypoint({self.name!r}, {self.lat:.4f}°, {self.lon:.4f}°)" > > > def haversine(a: Waypoint, b: Waypoint) -> float: > """Great-circle distance in nautical miles.""" > R = 3_440.065 > φ1, φ2 = math.radians(a.lat), math.radians(b.lat) > dφ = math.radians(b.lat - a.lat) > dλ = math.radians(b.lon - a.lon) > h = math.sin(dφ / 2) ** 2 + math.cos(φ1) * math.cos(φ2) * math.sin(dλ / 2) ** 2 > return 2 * math.asin(math.sqrt(h)) * R > > > IONIAN_PORTS: list[Waypoint] = [ > Waypoint("Corfu", 39.6243, 19.9217), > Waypoint("Lefkada", 38.8333, 20.7000), > Waypoint("Kefalonia", 38.1753, 20.5694), > Waypoint("Ithaka", 38.3667, 20.6833), > Waypoint("Zakynthos", 37.7833, 20.8972), > ] > > > def route_distances(ports: list[Waypoint]) -> Iterator[tuple[str, str, float]]: > for i in range(len(ports) - 1): > a, b = ports[i], ports[i + 1] > yield a.name, b.name, haversine(a, b) > > > if __name__ == "__main__": > for origin, dest, nm in route_distances(IONIAN_PORTS): > print(f"{origin:12} → {dest:12} {nm:6.1f} nm") > ``` > [!abstract]- Collapsed Callout with Table > Full comparison table inside a collapsed callout. Expand to verify alignment, borders, and no layout bleed. > > | Island | Greek Name | Area km² | Population | Capital | > | :--- | :--- | ---: | ---: | :--- | > | Corfu | Κέρκυρα | 610 | 102,071 | Corfu Town | > | Lefkada | Λευκάδα | 304 | 22,652 | Lefkada Town | > | Kefalonia | Κεφαλονιά | 781 | 35,801 | Argostoli | > | Ithaka | Ιθάκη | 96 | 3,231 | Vathy | > | Zakynthos | Ζάκυνθος | 406 | 40,759 | Zakynthos Town | > | Kythira | Κύθηρα | 279 | 3,354 | Kythira Town | > | Lefkada | Λευκάδα | 304 | 22,652 | Lefkada Town | --- ## Nested Callouts > [!warning] Outer Warning > This is the outer callout. It contains a nested callout below. > > > [!danger] Inner Danger (nested) > > This nested danger callout sits inside the warning. The visual indentation and color should distinguish the two levels. > > > > > [!note] Triple-nested Note > > > Three levels deep. Background and border should still be legible. > [!abstract]- Collapsed Outer with Open Inner > The outer callout is collapsed by default. When expanded, the inner callout is already open. > > > [!info] Inner Info (always open) > > This info block is visible once the outer abstract is expanded. --- ## Callouts with Task Lists > [!note] Pre-voyage Checklist > - [x] Provisions loaded > - [x] Charts reviewed > - [ ] Weather window confirmed > - [ ] Crew briefed on emergency procedures > - [Β] Captain's log updated > - [Φ] Compass calibrated