Open links in the default browser
The editor opens http and https links in the default browser and mailto links in the default mail app. Click a link in Preview or read-only mode, or Ctrl+click while editing (Cmd+click on macOS).
Handle LinkClicked when your application needs custom routing or a different destination policy. Set args.Handled = true to take ownership; navigation stays outside the editing surface.

Use it in your application
No event handler is required for the default web and mail links. The editor raises LinkClicked first, then opens an allowed address unless your handler sets args.Handled to true.
For custom handling, set args.Handled = true before validating or opening the address. This prevents the editor from opening it again after your handler returns. The example below permits only absolute HTTP and HTTPS addresses; every other address remains handled and is not opened.
Subscribe while the host owns the editor, and detach long-lived handlers when appropriate. A relative address needs an application-owned base before it can be opened externally.
Keep file and custom-protocol handling as explicit application policy. Do not pass arbitrary authored text directly to a shell. This example uses System.Diagnostics.
editor.LinkClicked += (_, args) =>
{
args.Handled = true;
if (Uri.TryCreate(args.Address, UriKind.Absolute, out var uri) &&
uri.Scheme is "https" or "http")
{
Process.Start(new ProcessStartInfo(uri.AbsoluteUri) { UseShellExecute = true });
}
};