Skip to main content
ESC

Links

Links are a standard markdown element used to navigate between pages or external resources. In Robindoc, all links inside markdown items are rendered through a unified link component, which gives you consistent styling, safe handling of external links, and correct integration with your app’s router.

By default, markdown links like [Overview](/docs/overview) or [GitHub](https://github.com/…) are rendered as standard HTML <a> elements. When you provide a NavigationProvider (or use a ready-made wrapper such as @robindoc/next), those links are rendered through your preferred link implementation (for example, next/link).

Robindoc distinguishes links based on the href value and adjusts behavior accordingly:

You do not have to mark links as internal or external in markdown — Robindoc detects this based on the URL (absolute vs relative, scheme, etc.).

Using Robindoc with Next.js (@robindoc/next) 

When you use the @robindoc/next integration, Robindoc plugs directly into the Next.js router:

import { NavigationProvider } from "@robindoc/next";

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html>
<body>
<NavigationProvider>
{children}
</NavigationProvider>
</body>
</html>
);
}

Customization and styling 

Recommendations 

Customization 

The ContentLink component can be customized by overwriting tags. See Tags for more details.

Code BlocksHeadings
Return to navigation