starlight_help/src/content/docs/insert-a-link.mdx
import {TabItem, Tabs} from "@astrojs/starlight/components";
import FlattenedSteps from "../../components/FlattenedSteps.astro"; import KeyboardTip from "../../components/KeyboardTip.astro"; import LinksExamples from "../include/_LinksExamples.mdx"; import LinksIntro from "../include/_LinksIntro.mdx"; import StartComposing from "../include/_StartComposing.mdx";
import LinkIcon from "~icons/zulip-icon/link";
<LinksIntro /> 1. Select the text you want to linkify.
1. Paste a URL to turn the selected text into a named link.
</FlattenedSteps>
<KeyboardTip>
You can also use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd>
to insert link formatting.
</KeyboardTip>
1. Select the text you want to linkify.
1. Click the **link** (<LinkIcon />) icon at the
bottom of the compose box.
1. Replace `url` with a valid URL.
</FlattenedSteps>
<KeyboardTip>
You can also use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd>
to insert link formatting.
</KeyboardTip>
1. To create a named link, use `[ ]` around the link text, and `( )` around the
URL: `[Link text](URL)`.
</FlattenedSteps>
<KeyboardTip>
You can also use <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd>
to insert link formatting.
</KeyboardTip>