CustomUriExportStrategy
CustomUriExportStrategy class
Implements a URI export strategy that lets you customize how resource URIs are written to Markdown.
public class CustomUriExportStrategy : IUriExportStrategy
Constructors
| Name | Description |
|---|---|
| CustomUriExportStrategy(IUriSavingHandler) | Initializes a new instance of the CustomUriExportStrategy class. |
Methods
| Name | Description |
|---|---|
| UpdateResourceUri(UriExportContext) |
Remarks
Supply an IUriSavingHandler implementation to rewrite resource URIs (for example, to prepend a CDN base URL).
Examples
var handler = new CdnUriHandler();
var options = new ConvertOptions
{
UriExportStrategy = new CustomUriExportStrategy(handler)
};
string markdown = MarkdownConverter.ToMarkdown("document.docx", options);
See Also
- interface IUriExportStrategy
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown