Links
Create hyperlinks, cross-references, and external links in your documentation.
Links connect your documentation pages together and point to external resources. Mordoc supports standard markdown link syntax with automatic handling of external links.
Syntax
Create links using markdown bracket notation:
Markdown
[Link Text](URL)Example
| Syntax | Result |
|---|---|
Markdown | Mordoc docs |
Link types
External links
Link to websites outside your documentation:
| Syntax | Result |
|---|---|
Markdown |
Internal links
Link to other pages within your documentation using paths:
| Syntax | Result |
|---|---|
Markdown |
Email links
Create mailto links:
| Syntax | Result |
|---|---|
Markdown | Contact Support |
Styling links
Mordoc provides sensible default styles for links. If you want to customize link colors to better match your brand, you can do so by adding a typography.json file under the config/styles/ directory.
This file allows you to control how links appear in both light and dark modes.
Available style variables
| Variable | Description | Example HEX value |
|---|---|---|
linkColor | Link color in light mode | #171717 |
linkColorDark | Link color in dark mode | #fafafa |
linkHoverColor | Link color on hover in light mode | #000000 |
linkHoverColorDark | Link color on hover in dark mode | #FFFFFF |
Example configurations
Blue links:
Json
{
"linkColor": "#0665c4",
"linkColorDark": "#61b1f2",
"linkHoverColor": "#0a0b66",
"linkHoverColorDark": "#93c5fd"
}Green links:
Json
{
"linkColor": "#059669",
"linkColorDark": "#10b981",
"linkHoverColor": "#047857",
"linkHoverColorDark": "#34d399"
}Next steps
- Images - Embed images in your documentation
- Lists - Create ordered and unordered lists
- Code Blocks - Add syntax-highlighted code examples

