IUriSavingHandler

IUriSavingHandler interface

Callback interface invoked for each resource URI during conversion when using CustomUriExportStrategy. Implement this interface to rewrite resource URIs in the Markdown output.

public interface IUriSavingHandler

Methods

Name Description
Handle(UriSavingArgs) Called once for each resource URI that will be written to the Markdown output.

Examples

Prepend a CDN base URL to every resource:

public class CdnUriHandler : IUriSavingHandler
{
    public void Handle(UriSavingArgs args)
    {
        args.SetResourceFileUri("https://cdn.example.com/" + args.ResourceFileName);
    }
}

See Also