Defines a strategy for customizing resource URIs that are written into the Markdown output during conversion.
Implement this interface to rewrite or transform the URIs that reference images or other external
resources in the generated Markdown. For example, you can prepend a CDN base URL or change
relative paths to absolute URLs.
Example:
public class CdnUriExportStrategy implements IUriExportStrategy {
@Override
public void updateResourceUri(UriExportContext context) {
context.setResourceFileUri(
"https://cdn.example.com/assets/" + context.getResourceFileName()
);
}
}
The URI export context. Set resourceFileUri to override the URI that appears in the Markdown output, or modify resourceFileName to change the resource file name.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.